Skip to content

Commit 4f77eaf

Browse files
committed
README: Add build instructions
1 parent fc42190 commit 4f77eaf

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ doubleprecision 64-bit format IEEE 754 values as specified in the IEEE Standard
1515
The [maximum safe integer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)
1616
in JavaScript is 2<sup>53</sup>-1.
1717

18-
Example: 2<sup>64</sup>-1 is 18446744073709551615 but in JavaScript it evaluates to `18446744073709552000`.
18+
Example: 2<sup>64</sup>-1 is 1844674407370955**1615** but in JavaScript it evaluates to 1844674407370955**2000**.
1919

2020
Furthermore, bitwise operators in JavaScript "deal only with integers in the range −2<sup>31</sup> through
2121
2<sup>31</sup>−1, inclusive, or in the range 0 through 2<sup>32</sup>−1, inclusive. These operators accept any value of
@@ -524,3 +524,19 @@ Returns the bitwise XOR of this Long and the given one.
524524
|-----------------|-----------------|---------------
525525
| other | *!Long &#124; number &#124; string* | Other Long
526526
| **@returns** | *!Long* |
527+
528+
Building
529+
--------
530+
531+
To build an UMD bundle to `dist/long.js`, run:
532+
533+
```
534+
$> npm install
535+
$> npm run build
536+
```
537+
538+
Running the [tests](./tests):
539+
540+
```
541+
$> npm test
542+
```

0 commit comments

Comments
 (0)