Check if npm-shrinkwrap.json is present in the working directory
npm install --save has-shrinkwrap$ tree
.
├── bar
│ ├── npm-shrinkwrap.json
│ └── package.json
└── foo
└── package.jsonconst hasShrinkwrap = require('has-shrinkwrap');
hasShrinkwrap('foo');
//=> false
hasShrinkwrap('bar');
//=> trueReturns a boolean.
Type: string
Default: process.cwd()
Current working directory.
- has-lockfile – Detect lockfiles in the working directory
MIT © Lufty Wiranda