PHP 8.2.30
Preview: index.js Size: 588 B
/lib/node_modules/npm/node_modules/npm-audit-report/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

Directory Contents

Dirs: 2 × Files: 5

Name Size Perms Modified Actions
lib DIR
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
reporters DIR
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
3.07 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download
588 B lrw-r--r-- 2021-03-10 14:36:40
Edit Download
755 B lrw-r--r-- 2021-03-10 14:36:40
Edit Download
1.94 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download
1.50 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).