Code Monkey home page Code Monkey logo

audit-export's People

Contributors

camilobernal avatar taylorho avatar veekeefr avatar

Stargazers

 avatar  avatar  avatar

audit-export's Issues

Usage needs to be edited in Readme

This is a small thing, but it could be important. The Usage section of README.md gives the expanded syntax as

npm audit --json | audit-export --folder <folder_path> --name <file_name.html> --title <HTML_file_title>

... but in source/index.js, it looks like the filename parameter should be --file, not --name .

My suggestion would be to keep --file, and edit the Readme.

Not able to run the command

when I try to run the audit-export command with npm audit its throwing error. Here are the logs which I got.

npm audit -- json | audit-export /home/.nvm/versions/node/v16.14.2/lib/node_modules/audit-export/src/index. js: 131 cwes: vuln.cwe.concat(vuln.cves). join(", "),

TypeError: Cannot read properties of undefined (reading 'concat') at processVulnerability (/home/.nvm/versions/node/v16.14.2/lib/node_modules/audit-export/src/index.js: 131:22) at /home/.nvm/versions/node/v16.14.2/lib/node_modules/audit-export/src/index. js: 116:33 at Array.map (<anonymous>) at getVulnerabilities (/home/.nvm/versions/node/v16.14.2/lib/node_modules/audit-export/src/index. js:116:19) at generateHtmlTemplateContent (/home/.nvm/versions/node/v16.14.2/lib/node_modules/audit-export/src/index. js: 71:27) at writeOutput (/home/.nvm/versions/node/v16.14.2/lib/node_modules/audit-export/src/index. js: 53:18) at /home/.nvm/versions/node/v16.14.2/lib/node_modules/audit-export/src/index.js:43:5 at FSReqCallback.oncomplete (node:fs: 188:23)>

Node Version - v16.14.2
NPM - 8.5.0
NVM - 0.35.3
OS - ubuntu 22.04.3 LTS

enhance: Show custom message on a blank table

When the project analyzed has no vulnerable dependencies, the exported table doesn't show anything.

Instead, the table could show a message like "No vulnerable dependency found".

Or instead, maybe the even not a table shown, just a message saying that no vulnerable dependencies were found on the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.