Giter VIP home page Giter VIP logo

audit-export's People

Contributors

camilobernal avatar taylorho avatar uchilaka avatar veekeefr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

audit-export's Issues

New eslint configuration system

There's a new ESLint configuration system available. It's not currently the default, but the system used in the project (.eslintrc.js) will be deprecated by eslint v9.0.0

image

The deprecation notice is here

PS: Found my way to this project via npm-audit-html and was glad there's a team supporting this. I intend to look into a PR for the eslint config system updates in a bit - just posting this for visibility in case someone else gets to it before I do

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

Setup CI to test node versions

The PR template mentions the following:

I have tested this package in at least two versions of Node.js (one lower than the v14 and one higher than the v16)

These tests can be automated in CI. Creating this issue to setup Github Actions to run tests in CI for:

  • nodejs v12.x
  • nodejs v14.x
  • nodejs v16.x
  • nodejs v18.x
  • nodejs latest

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.