Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-audit-report

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-audit-report

Given a response from the npm security api, render it into a variety of security reports

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
505K
decreased by-26.55%
Maintainers
1
Weekly downloads
 
Created
Source

npm audit security report

Given a response from the npm security api, render it into a variety of security reports

The response is an object that contains an output string (the report) and a suggested exitCode.

{
  output: 'string that contains the security report',
  exit: 1
}

Basic usage example

'use strict'
const Report = require('npm-audit-report')

Report(response, options, (result) => {
  console.log(result.output)
  process.exitCode = result.exitCode
})

options

reporter: specify which output format you want to use (install, detail, json)

severityThreshold: specifies the severity threshold for reporting. Possible values include info, low, moderate, high, critical

example: If you specify high, then only vulnerabilities with high and critical would be displayed.

withColor: true || false indicates if some report elements should use colors or not

withUnicode: true || false indicates if unicode characters should be used or not.

Keywords

FAQs

Package last updated on 19 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc