Submit
Path:
~
/
/
proc
/
self
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
npm-audit-report
/
File Content:
index.js
'use strict' const reporters = { install: require('./reporters/install'), parseable: require('./reporters/parseable'), detail: require('./reporters/detail'), json: require('./reporters/json'), quiet: require('./reporters/quiet') } const report = function (data, options) { const defaults = { reporter: 'install', withColor: true, withUnicode: true } const config = Object.assign({}, defaults, options) return new Promise((resolve) => { const result = reporters[config.reporter](data, config) return resolve(result) }) } module.exports = report
Submit
FILE
FOLDER
Name
Size
Permission
Action
lib
---
0755
reporters
---
0755
CHANGELOG.md
3140 bytes
0644
LICENSE
755 bytes
0644
README.md
1540 bytes
0644
index.js
588 bytes
0644
package.json
1982 bytes
0644
N4ST4R_ID | Naxtarrr