Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2018-01-30 02:18:47 +0300
committerKat Marchán <kzm@zkat.tech>2018-04-21 00:05:22 +0300
commit8c77dde74a9d8f9007667cd1732c3329e0d52617 (patch)
treeccfcc57b62f57362106fdbf6eebad05110395386 /lib/shrinkwrap.js
parent5e28404e30a479c83fd44144823f2eab140b3a03 (diff)
audit: Add new audit command
PR-URL: https://github.com/npm/npm/pull/20389 Credit: @iarna Reviewed-By: @zkat
Diffstat (limited to 'lib/shrinkwrap.js')
-rw-r--r--lib/shrinkwrap.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/shrinkwrap.js b/lib/shrinkwrap.js
index 96ff16c8c..cd84560f1 100644
--- a/lib/shrinkwrap.js
+++ b/lib/shrinkwrap.js
@@ -34,6 +34,8 @@ const PKGLOCK_VERSION = npm.lockfileVersion
shrinkwrap.usage = 'npm shrinkwrap'
module.exports = exports = shrinkwrap
+exports.treeToShrinkwrap = treeToShrinkwrap
+
function shrinkwrap (args, silent, cb) {
if (typeof cb !== 'function') {
cb = silent