LinuxCommandLibrary

npm-shrinkwrap

creates npm-shrinkwrap

TLDR

Create shrinkwrap file

$ npm shrinkwrap
copy
Include dev dependencies
$ npm shrinkwrap --dev
copy

SYNOPSIS

npm shrinkwrap [options]

DESCRIPTION

npm shrinkwrap creates npm-shrinkwrap.json. Locks dependency versions for publishing.
The command creates publishable lockfile. Unlike package-lock.json, included in package.

PARAMETERS

--dev

Include devDependencies.
--help
Display help information.

CAVEATS

Published with package. Overrides package-lock.json. Use for libraries.

HISTORY

npm shrinkwrap provides version locking that travels with published packages.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community