numbro

v2.5.0
Format and manipulate numbers.
numeral numbro number format time money percentage

prepublishOnly

echo "Are you sure you want to publish a new release with version ${npm_package_version}? (y/n)?" && read choice && case "$choice" in y|Y ) npm run build;; * ) echo "Abort!" && exit 1;; esac

postpublish

git tag -as ${npm_package_version} -m "Release version ${npm_package_version}" && git push && git push --tags

preversion

echo "Use `bump:xxx` instead" && exit 1

lint

npx eslint --report-unused-disable-directives --rulesdir ./eslint_rules ./src/**/*.js ./tests/**/*.js ./languages/**/*.js

test:unit

npx jasmine

test:integration

npx jasmine ./integrationTests/node/numbro.js

test

npm run test:unit && npm run test:integration

bump:major

node ./toolchain/bump.js major

bump:minor

node ./toolchain/bump.js minor

bump:patch

node ./toolchain/bump.js patch

build

NODE_ENV=production rollup -c

build:clean

npx rimraf dist

coverage:instrument

nyc --all --silent jasmine

coverage:report

nyc report --reporter=lcov

coverage:check

nyc check-coverage --lines 100 --branches 100 --statements 100 --functions 100
npm i numbro

Metadata

  • MIT
  • *
  • Benjamin Van Ryseghem
  • released 4/4/2024

Downloads