NPM-SHRINKWRAP.JSON(5)
π NAME π
okay bestie, welcome to the manual page for npm-shrinkwrap.json β yep, the NPM-SHRINKWRAP.JSON(5) one. Itβs literally described as A publishable lockfile. slay.
π Description π
So npm-shrinkwrap.json is a file created by npm help shrinkwrap. It is identical to package-lock.json, with one major caveat: unlike package-lock.json, npm-shrinkwrap.json may be included when publishing a package. no cap, thatβs the whole plot twist.
The recommended use-case for npm-shrinkwrap.json is applications deployed through the publishing process on the registry: for example, daemons and command-line tools intended as global installs or devDependencies. itβs giving βdeploy me carefully.β
Itβs strongly discouraged for library authors to publish this file, since that would prevent end users from having control over transitive dependency updates. like, donβt do it, bestie π β thatβs a real warning, not a vibe.
Additionally, if both package-lock.json and npm-shrinkwrap.json are present in a package root, package-lock.json will be ignored in favor of this file. periodt.
For full details and description of the npm-shrinkwrap.json file format, refer to the manual page for npm help package-lock.json. thatβs your next read, iykyk πβ¨
π See also π
npm help shrinkwrapnpm help package-lock.jsonnpm help package.jsonnpm help install
okay thatβs the whole page, bestie π«Άπ β source/version is NPM-SHRINKWRAP.JSON(5), dated April 2021. mwah πβ¨
π¦ where this page comes from
- nixos 26.05: vscode-extension-zxh404-vscode-proto3 0.5.5
- nixpkgs unstable: vscode-extension-zxh404-vscode-proto3 0.5.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms