nevernull

v1.0.4
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 query object

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 eslint -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

build-no-clean

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

build-watch

babel src --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

Metadata

  • MIT
  • >=7.0.0
  • Jason McAffee
  • released 11/10/2016

Downloads

Maintainers