Check if `npm-shrinkwrap.json` is present in the working directory
npm install has-shrinkwrap



Check if npm-shrinkwrap.json is present in the working directory
``sh`
npm install --save has-shrinkwrap
`sh`
$ tree
.
├── bar
│ ├── npm-shrinkwrap.json
│ └── package.json
└── foo
└── package.json
`js
const hasShrinkwrap = require('has-shrinkwrap');
hasShrinkwrap('foo');
//=> false
hasShrinkwrap('bar');
//=> true
`
Returns a boolean.
#### cwd
Type: stringprocess.cwd()`
Default:
Current working directory.
* has-lockfile – Detect lockfiles in the working directory
MIT © Lufty Wiranda