nano-result

v0.0.2
A mini result handing library inspired by Rusts' Result enum

test

jest

test:mem

npm test -- --coverage --silent --logHeapUsage

test:watch

jest --watch

test:prod

npm run test -- --coverage --no-cache

test:prepublish

npm run lint && npm run test -- --silent --no-cache

tsc

tsc --noEmit -p ./tsconfig.json

format

find ./src/ -name '*.ts*' | xargs prettier --write --config ./.prettierrc --config-precedence file-override

remotedev

remotedev --hostname=localhost --port=8000

lint

tslint --project .

lint:fix

tslint --project . --fix

prebuild

rimraf dist

build

tsc -p ./tsconfig-build.json --module commonjs && rollup -c rollup.config.ts

prepublishOnly

rimraf node_modules && npm i && npm run tsc && npm run test:prepublish && npm run build

precommit

lint-staged

report-coverage

cat ./coverage/lcov.info | coveralls

prepush

npm run lint && npm run tsc
npm i nano-result

Metadata

  • MIT
  • Whatever
  • MyCrypto
  • released 5/9/2018

Downloads

Maintainers