@trufflesuite/bigint-buffer

v1.1.10
bigint to buffer conversion with native support
bigint bignum tc39-bigint napi

test

npm run test:node && npm run test:browser

coverage

istanbul cover ./test/index.js

coveralls

npm run coverage && coveralls <coverage/lcov.info

lint

gts check

install

node-gyp-build || echo "Couldn't build bindings. Non-native version used."

prepare

npm run compile

test:browser

karma start karma.conf.js

test:node

mocha -r ts-node/register src/**/*.spec.ts --timeout 40000

benchmark

node -r ts-node/register src/index.bench.ts

typedoc

typedoc --out docs $(pwd)/src $(pwd)/helper --target es6 --mode file --tsconfig ./tsconfig.json --excludePrivate --excludeProtected --excludeNotExported --exclude '**/*+(spec|bench).ts'

rebuild

node-gyp rebuild

check

gts check

clean

gts clean

compile

mkdirp dist && tsc -p . && rollup -c > dist/node.js && cross-env BROWSER=true rollup -c > dist/browser.js && cpx "build/src/*.d.ts" dist

fix

gts fix

pretest

npm run compile

posttest

npm run check
npm i @trufflesuite/bigint-buffer

Metadata

Downloads