purescript-js-bigints/README.md

17 lines
870 B
Markdown
Raw Normal View History

2022-10-15 22:43:47 +03:00
# purescript-js-bigints
2022-10-15 22:55:05 +03:00
ffi bindings for JavaScript's [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt).
2022-10-17 10:34:04 +03:00
**Note:** There is also [`purescript-bigints`](https://github.com/purescript-contrib/purescript-bigints), which wraps the [BigInteger.js](https://github.com/peterolson/BigInteger.js) js library that emulated big integers before the arrival of `BigInt` and is now basically just a polyfill.
`purescript-js-bigints` on the other hand provides close and direct ffi bindings to the new native `BigInt` and therefore doesn't require any external npm dependency. This library has been adapted from the original `purescript-bigints`.
2022-10-15 22:55:05 +03:00
2023-01-12 18:08:48 +03:00
## Documentation
Module documentation is [published on Pursuit](https://pursuit.purescript.org/packages/purescript-js-bigints/).
2022-10-15 22:55:05 +03:00
## Installation
```bash
spago install js-bigints
```