mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 12:20:04 +02:00
update node modules
This commit is contained in:
15
node_modules/decimal.js/README.md
generated
vendored
15
node_modules/decimal.js/README.md
generated
vendored
@@ -2,6 +2,8 @@
|
||||
|
||||
An arbitrary-precision Decimal type for JavaScript.
|
||||
|
||||
[](https://www.npmjs.com/package/decimal.js)
|
||||
[](https://www.npmjs.com/package/decimal.js)
|
||||
[](https://travis-ci.org/MikeMcl/decimal.js)
|
||||
[](https://cdnjs.com/libraries/decimal.js)
|
||||
|
||||
@@ -34,7 +36,7 @@ For a lighter version of this library without the trigonometric functions see [d
|
||||
|
||||
## Load
|
||||
|
||||
The library is the single JavaScript file *decimal.js* (or minified, *decimal.min.js*).
|
||||
The library is the single JavaScript file *decimal.js* or ES module *decimal.mjs*.
|
||||
|
||||
Browser:
|
||||
|
||||
@@ -42,17 +44,24 @@ Browser:
|
||||
<script src='path/to/decimal.js'></script>
|
||||
```
|
||||
|
||||
```html
|
||||
<script type="module">
|
||||
import Decimal from './path/to/decimal.mjs';
|
||||
...
|
||||
</script>
|
||||
```
|
||||
|
||||
[Node.js](http://nodejs.org):
|
||||
|
||||
```bash
|
||||
$ npm install --save decimal.js
|
||||
$ npm install decimal.js
|
||||
```
|
||||
|
||||
```js
|
||||
var Decimal = require('decimal.js');
|
||||
```
|
||||
|
||||
ES6 module (*decimal.mjs*):
|
||||
ES module:
|
||||
|
||||
```js
|
||||
//import Decimal from 'decimal.js';
|
||||
|
Reference in New Issue
Block a user