NPM-SHRINKWRAP(3)

πŸ“¦ version 1.2.1, in nixos 26.05, nixpkgs unstable

πŸŽ€ NPM-SHRINKWRAP(3): shrinkwrap, but make it programmatic πŸŽ€

okay so bestie, welcome to the npm-shrinkwrap(3) manual page β€” this is the one where npm programmatically generates a package shrinkwrap file, and it's giving main character energy, periodt ✨.


πŸ’– NAME πŸ’–

npm-shrinkwrap β€” programmatically generate package shrinkwrap file πŸ’…

✨ SYNOPSIS ✨

npm.commands.shrinkwrap(args, [silent,] callback)

🌸 DESCRIPTION 🌸

okay so this lowkey acts much the same way as shrinkwrapping on the command-line. Same shrinkwrap vibe, just programmatic, no cap ✨.

Real talk: this command does not take any arguments, but args must be defined. Yes bestie, args is required even though the command itself is not taking positional arguments β€” the way that works is lowkey iconic πŸ’€.

Beyond that, if any arguments are passed in, npm will politely warn that it does not take positional arguments. Polite but firm, fr fr 🫢.

If the silent parameter is set to true, nothing will be output to the screen, but the shrinkwrap file will still be written. Silent mode = quiet queen, but the file still slays on disk πŸ’….

Finally, callback is a function that will be called when the shrinkwrap has been saved. It's literally the little "done, bestie" moment of this whole operation πŸŽ€.

bestie reminder: args must be defined, even though the command takes no arguments β€” that's the whole twist, iykyk πŸ’–

mwah β€” March 2017, from the NPM-SHRINKWRAP(3) manual page 🌈

πŸ“¦ where this page comes from