jsbi

v3.2.5
JSBI is a pure-JavaScript implementation of [the ECMAScript BigInt proposal](https://tc39.es/proposal-bigint/), which officially became a part of the JavaScript language in ES2020.

build

tsc && for f in tsc-out/*.js; do mv -- "$f" "${f%.js}.mjs"; done && rollup --config rollup.config.js

dev

rollup --config rollup.config.js --watch

test

set -e; for file in tests/*.mjs; do node --no-warnings --experimental-modules --experimental-specifier-resolution=node --loader ./tests/resolve.source.mjs "${file}"; done; for file in benchmarks/*.mjs; do node --no-warnings --experimental-modules --experimental-specifier-resolution=node --loader ./tests/resolve.source.mjs "${file}"; done

pretest

npm run build

prepublish

npm run ci

lint

eslint . --ext ts --fix

generate-benchmarks

for op in add and div mod mul neg not or sar shl sub xor; do scripts/generate-benchmark.py generate "${op}" > "benchmarks/${op}.mjs"; done

ci

npm run lint && npm run build && git status && git diff-index --quiet HEAD -- || git diff && npm test

Metadata

Downloads