BROWSER-PACK(1)
π browser-pack(1) β the manual page, but make it make sense π
okay bestie, gather round, because today we're talking about browser-pack, and honestly? she's lowkey the backbone of the whole browserify situation. no cap.
β¨ NAME β¨
browser-pack β pack Node.js source file information for browserify uses π«Ά
πΈ SYNOPSIS πΈ
browser-pack [file]
π¦ DESCRIPTION π¦
so here's the vibe: browser-pack packs node-style source files from a json stream into a browser bundle. it's giving compiler energy, honestly.
browser-pack will input a json file and output a javascript file. that's the whole glow-up. β¨
and by default? browser-pack will read from STDIN. periodt. π
π EXAMPLES π
here's the iconic little demo, copy it exactly bestie, no editing:
browser-pack <<EOF
[
{
"id": "a1b5af78",
"source": "console.log(require('./foo')(5))",
"deps": { "./foo": "b8f69fa5" },
"entry": true
},
{
"id": "b8f69fa5",
"source": "module.exports = function (n) { return n * 111 }",
"deps": {}
}
]
EOF
likeβ¦ the way that just flows straight into STDIN? obsessed. ππ
π SEE ALSO π
browserify(1)πnodejs(1)π
and that's the whole page, bestie!! this little legend is from browser-pack(1), dated 8/4/17 β mwah, iconic, no notes. π β¨ππ¦
π¦ where this page comes from
- debian bookworm: node-browser-pack 6.1.0+ds+~6.1.1-3 Β· MIT
- debian trixie: node-browser-pack 6.1.0+ds+~6.1.3-1 Β· MIT
- ubuntu jammy: node-browser-pack 6.1.0+ds-11 Β· MIT
- ubuntu noble: node-browser-pack 6.1.0+ds+~6.1.3-1 Β· MIT
- ubuntu resolute: node-browser-pack 6.1.0+ds+~6.1.3-1 Β· MIT
- ubuntu stonking: node-browser-pack 6.1.0+ds+~6.1.3-4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms