has-shrinkwrap

v1.0.0
Check if `npm-shrinkwrap.json` is present in the working directory
app detect has is lockfile lock-file manager module npm and 6 more...

has-shrinkwrap

Package Version Build Status: Linux Coverage Status Downloads Status

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

Installation

npm install --save has-shrinkwrap

Usage

$ tree
.
├── bar
│   ├── npm-shrinkwrap.json
│   └── package.json
└── foo
    └── package.json
const hasShrinkwrap = require('has-shrinkwrap');

hasShrinkwrap('foo');
//=> false

hasShrinkwrap('bar');
//=> true

API

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

npm i has-shrinkwrap

Metadata

  • MIT
  • >=6
  • Lufty Wiranda
  • released 1/8/2018

Downloads

Maintainers