Skip to content

luftywiranda13/has-shrinkwrap

Repository files navigation

has-shrinkwrap

Package Version Downloads Status Build Status: Linux Coverage 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published