bigint-mod-arith

v3.3.1
Some common functions for modular arithmetic using native JS implementation of BigInt
modular arithmetics BigInt lcm gcd egcd modinv modular inverse modpow modular exponentiation and 1 more...

build

run-s lint:src build:js lint:test docs

build:js

rollup -c build/rollup.config.js

postbuild:js

rimraf .types

clean

rimraf .mocha-ts coverage dist .types docs

coverage

c8 --clean --check-coverage --exclude "{src/ts/**/*.spec.ts,test,test-vectors,build}" --exclude-after-remap --reporter=text --reporter=lcov node ./build/bin/mocha-ts.cjs --commonjs

docs

node build/build.docs.cjs

git:add

git add -A

lint

ts-standard --fix

lint:src

ts-standard --fix "src/**/!(*.spec).ts"

lint:test

ts-standard --fix "{test/**/*.ts,src/**/*.spec.ts}"

mocha-ts

node --experimental-modules --experimental-json-modules --es-module-specifier-resolution=node ./build/bin/mocha-ts.cjs

mocha-ts:cjs

node ./build/bin/mocha-ts.cjs --commonjs

mocha-ts:watch

npm run mocha-ts:cjs -- --watch

mocha-ts:browser

node build/testing/browser/index.cjs

mocha-ts:browser-headless

node build/testing/browser/index.cjs headless

preversion

run-s clean lint:src build:js lint:test coverage test:browser-headless

version

run-s docs git:add

postversion

git push --follow-tags

test

run-s test:node test:browser-headless

test:browser

npm run mocha-ts:browser

test:browser-headless

npm run mocha-ts:browser-headless

test:node

run-s test:node-cjs test:node-esm

test:node-cjs

npm run mocha-ts:cjs

test:node-esm

npm run mocha-ts

watch

npm run mocha-ts:watch
npm i bigint-mod-arith

Metadata

  • MIT
  • >=10.4.0
  • Juan Hernández Serrano
  • released 6/28/2023

Downloads

Maintainers