nevernull

v1.3.0
Safe navigation of objects (avoid null pointer exceptions / avoid TypeError cannot access property 'x' of undefined)
null pointer exception never null nn TypeError cannot access property TypeError cannot access property of undefined of undefined safe navigation existential operator elvis operator and 2 more...

codio:download-node

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -

codio:install-node

sudo apt-get install -y nodejs

initial-setup

npm install jasmine -g && npm install babel-cli -g && npm install && npm run build

initial-setup-for-codio

npm run codio:download-node && npm run codio:install-node && npm run initial-setup

test

NODE_ENV=test-unit jasmine JASMINE_CONFIG_PATH=jasmine.json

test:performance

node --expose-gc build/performance/test.js

build-no-clean

babel src test --out-dir build --source-maps

build-watch

babel src test --out-dir build --source-maps --watch

clean

rm -rf build

build

npm run clean && npm run build-no-clean

dist

cp build/nevernull.js lib && cp build/nevernull.js.map lib

build-dist

npm run build && npm run dist
npm i nevernull

Metadata

  • MIT
  • >=6.0.0
  • Jason McAffee
  • released 11/27/2016

Downloads

Maintainers