Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/purescript-contrib/purescript-js-bigints


https://github.com/purescript-contrib/purescript-js-bigints

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# purescript-js-bigints

ffi bindings for JavaScript's [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt).

**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`.

## Documentation

Module documentation is [published on Pursuit](https://pursuit.purescript.org/packages/purescript-js-bigints/).

## Installation

```bash
spago install js-bigints
```