1.0.0 • Published 8 years ago
has-shrinkwrap v1.0.0
has-shrinkwrap
Check if npm-shrinkwrap.json is present in the working directory
Installation
npm install --save has-shrinkwrapUsage
$ tree
.
├── bar
│ ├── npm-shrinkwrap.json
│ └── package.json
└── foo
└── package.jsonconst hasShrinkwrap = require('has-shrinkwrap');
hasShrinkwrap('foo');
//=> false
hasShrinkwrap('bar');
//=> trueAPI
hasShrinkwrap(cwd)
Returns a boolean.
cwd
Type: string
Default: process.cwd()
Current working directory.
Related
- has-lockfile – Detect lockfiles in the working directory
License
MIT © Lufty Wiranda
1.0.0
8 years ago