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 returns integrity and from if the --long flag 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 from resolve, and it includes integrity and spec. 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