INDEX.JS(1)
π NAME π
index.js β the JavaScript Package Handler, bestie. yeah that's the whole vibe π
β¨ DESCRIPTION β¨
okay so listen. Pacote β The JavaScript Package Handler, v21.5.0. that's it, that's the icon. she fetches things. she resolves things. she's the whole package (literally, no cap) π¦β¨
π Usage π
here's the group chat of subcommands, one by one, no skipping:
pacote resolve <spec>β resolves a specifier and spits out the fully resolved target. oh and it also returnsintegrityandfromif the--longflag is set. cute right? πpacote manifest <spec>β grabs a manifest and prints it straight to stdout. boom. done. π¦pacote packument <spec>β fetches the full packument and prints it to stdout. the whole thing, not a summary, we don't do half measures here πpacote tarball <spec> [<filename>]β fetches a package tarball and saves it to<filename>. and if<filename>is missing, or it's literally just-? then the tarball gets streamed to stdout instead. periodt. πpacote extract <spec> <folder>β extracts a package into the destination folder. unpack, unbothered, unstoppable π§
also quick note before you go off: all the configuration values match the names of configs you'd pass to npm, or options you'd pass to Pacote. lowkey convenient, highkey iconic.
πΈ Additional Flags πΈ
these are the extra ones this executable brings to the party:
--longβ prints an object fromresolve, and it includesintegrityandspec. the extra details version π«Ά--jsonβ prints result objects as JSON instead of node's default. heads up though: this is already the default if stdout is not a TTY. so if you're piping it somewhere, you get JSON whether you asked or not, iykyk π--help,-hβ prints this helpful text. the classic. the main character of every CLI π
and for example: --cache=/path/to/folder will use that folder as the cache. easy.
ngl the config pass-through thing is the real sleeper hit here β if npm knows the config name, so does this. π₯
so yeah. that's the whole page. Pacote, The JavaScript Package Handler, index.js, version 21.5.0 πβ¨ July 2026 β love that for her, slay, bye bestie πππ
π¦ where this page comes from
- ubuntu stonking: npm 11.16.0+ds2-4 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms