language: node_js
script:
 - npm run eslint
 - npm test
 - npm i nsp -g && nsp check

language: node_js
before_install:
  - npm i -g npm
script:
 - npm audit
 - npm run eslint
 - npm test

Replace nsp with npm audit
Replace nsp with npm audit