项目作者: kellerj

项目描述 :
Node Security Project tool mocha-json output formatter
高级语言: JavaScript
项目地址: git://github.com/kellerj/nsp-reporter-mocha.git
创建时间: 2017-11-27T20:09:02Z
项目社区:https://github.com/kellerj/nsp-reporter-mocha

开源协议:Apache License 2.0

下载


nsp-reporter-mocha

npm
Travis CI
Coverage Status
node
License

Mocha json-compatible reporter for the Node Security Project (nsp)

See the nsp website for more information.

Sample Output

  1. {
  2. "stats": {
  3. "tests": 1,
  4. "passes": 0,
  5. "failures": 1,
  6. "duration": 750,
  7. "start": "2017-11-27T22:54:24.609Z",
  8. "end": "2017-11-27T22:54:25.359Z"
  9. },
  10. "failures": [
  11. {
  12. "title": "Regular Expression Denial of Service",
  13. "fullTitle": "debug v2.6.8 Regular Expression Denial of Service",
  14. "duration": 0,
  15. "errorCount": 1,
  16. "error": "Module debug has a known vulnerability: \"Regular Expression Denial of Service\" (vulnerable: <= 2.6.8 || >= 3.0.0 <= 3.0.1, patched: >= 2.6.9 < 3.0.0 || >= 3.1.0, yours: 2.6.8), see https://nodesecurity.io/advisories/534"
  17. }
  18. ],
  19. "passes": [],
  20. "skipped": []
  21. }