Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the reporter API #44

Open
nprail opened this issue May 12, 2020 · 0 comments
Open

Expose the reporter API #44

nprail opened this issue May 12, 2020 · 0 comments
Labels
documentation enhancement New feature or request
Milestone

Comments

@nprail
Copy link
Member

nprail commented May 12, 2020

At the moment, to use npm-audit-html, you have to use it through the CLI. This is inconvenient for some people who need to use it programmatically. For example, with build systems like Gulp.

Additionally, the reporter should be more abstracted. It should not write files it's self but should only return an HTML string. The CLI should do the file writing.

Technically, you could use lib/reporter.js directly but it is currently undocumented and not set as the main file in the package.json.

@nprail nprail added enhancement New feature or request documentation labels May 12, 2020
@nprail nprail added this to the 2.0 milestone May 12, 2020
@nprail nprail mentioned this issue May 12, 2020
5 tasks
nprail added a commit that referenced this issue Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant