INDEX.JS(1)

πŸ“¦
version 0.5.1+~cs7.1.5 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

index.js β€” a simple bundler for your delicious modules πŸ“ (yes bestie, delicious, the manpage said it, I'm just the messenger)


πŸ’… DESCRIPTION πŸ’…

okay so listen. this is a bundler. it bundles. it's giving minimal, it's giving cozy, it's giving "why is my build tool 400 megabytes." you point it at an entry file, it does its lil thing, and your modules come out the other side all bundled and gorgeous. πŸ¦‹

🌸 Usage 🌸

$ bundt [entry] [options]

πŸŽ€ Config πŸŽ€

If no [entry] was provided, then src/index.js is used. no entry? no problem, it just assumes that one. periodt.

Configuration lives within your package.json file as these keys:

  • "main" β€” the output path for your CommonJS file (default: dist/browserify-lite.js)
  • "module" β€” the output path for your ES Module file β€” not built if undefined
  • "unpkg" or "umd:main" β€” the output path for your UMD file β€” not built if undefined
  • "browser" β€” the output path for your browser-specific entrypoint β€” not built if undefined
  • "umd:name" β€” the name of your UMD factory (default: "browserify-lite")
  • "modes" β€” a mapping of custom mode names to their entries
  • "terser" β€” a config object to customize Terser behavior

You may use a .terserrc file to store configuration instead of the "terser" key. lowkey the tidier option if you ask me, but do you boo 🫢

πŸ‘‘ Options πŸ‘‘

All files are built unless 1+ limits are defined. (read that again, bestie β€” it's the whole vibe check of this tool. define zero limits and it builds everything. define one and it goes "okay noted, only that then.")

  • --main β€” Builds the "main" file
  • --unpkg β€” Builds the "unpkg" or "umd:main" file
  • --module β€” Builds the "module" file
  • --browser β€” Builds the "browser" file
  • --minify β€” Minify all file formats
  • --help, -h β€” Displays this message

🌈 Examples 🌈

$ bundt
$ bundt lib/index.js
$ bundt src/browser.js --browser --unpkg

and that's the whole page, no cap. index.js 1.1.5, September 2022 β€” literally iconic of it. go bundle something cute, bestie πŸ’–βœ¨