ethjs-unit

v0.1.6
A simple module for handling Ethereum units (e.g. 'ether', 'wei', etc...)
ethereum encoding decoding

start

npm test

release

npmpub

pretest

npm run lint

prepublish

npm run build

prebuild

npm run build:clean && npm run test

build:clean

npm run test:clean && rimraf ./dist

build:commonjs

cross-env BABEL_ENV=commonjs babel src --out-dir lib --copy-files

build:umd

cross-env BABEL_ENV=commonjs NODE_ENV=development webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress

build:umd:min

cross-env BABEL_ENV=commonjs NODE_ENV=production webpack --config ./internals/webpack/webpack.config.js ./lib/index.js --progress

build

npm run build:commonjs && npm run test:lib && npm run build:umd && npm run build:umd:min

lint

npm run lint:js

lint:eslint

eslint --ignore-path .gitignore --ignore-pattern **/**.min.js

lint:js

npm run lint:eslint -- .

lint:staged

lint-staged

test:clean

rimraf ./coverage

test

mocha ./src/tests/**/*.js -R spec --timeout 2000000

test:lib

mocha ./lib/tests/**/*.js -R spec --timeout 2000000

test-travis

node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- src/tests/**/*.js -R spec --timeout 2000000

coveralls

npm run test-travis && cat ./coverage/lcov.info | coveralls
npm i ethjs-unit

Metadata

  • MIT
  • >=6.5.0
  • Nick Dodson
  • released 12/20/2016

Downloads

Maintainers