Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

has-shrinkwrap

luftywiranda1330MIT1.0.0

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

app, detect, has, is, lockfile, lock-file, manager, module, npm, package, project, shrink-wrap, shrinkwrap, yarn

readme

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.

  • has-lockfile – Detect lockfiles in the working directory

License

MIT © Lufty Wiranda