fp-ts-bigint
TypeScript icon, indicating that this package has built-in type declarations

2.1.6 • Public • Published

fp-ts-bigint

Build Status

BigInt library for fp-ts

As not every JavaScript runtime supports BigInt, this library contains opt-in bigint functions absent from fp-ts:

  • [x] Eq
  • [x] Ord
  • [x] Show
  • [ ] Field
  • [x] semigroupSum
  • [x] semigroupProduct
  • [x] monoidSum
  • [x] monoidProduct
  • [x] magmaSub

Install

npm install fp-ts-bigint

Use

Same as fp-ts

import * as B from "fp-ts-bigint";

B.semigroupSum.concat(2n, 3n); // => 5n
B.semigroupProduct.concat(2n, 5n); // => 10n

Related

Acknowledgments

Readme

Keywords

Package Sidebar

Install

npm i fp-ts-bigint

Weekly Downloads

720

Version

2.1.6

License

ISC

Unpacked Size

18.3 kB

Total Files

13

Last publish

Collaborators

  • hamroctopus