REGENERATOR(1)

πŸ“¦
version 0.15.2+~0.10.8 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute

πŸ‘‘ regenerator β€” the functional JavaScript transformator, bestie πŸ’–

okay so like. you know how sometimes your JS is giving "too new, too shiny" and some sad little runtime out there is like πŸ₯Ί "i only speak ES5"? yeah. regenerator is the functional JavaScript transformator that fixes that. she takes your source directory, she takes your output directory, and she serves πŸ’…


✨ SYNOPSIS ✨

regenerator [options] <source directory> <output directory> [<module ID>
[<module ID> ...]]

so yeah, you hand her a source directory and an output directory, and then β€” if you want β€” you can also pass one or more module IDs after that. no cap. ✨


πŸŽ€ OPTIONS πŸŽ€

she has SO many flags and honestly? each one is iconic in its own way. let's go, one by one, no skipping, we're not doing that to her 🫢

  • -V, --version β€” prints the version number. that's it. that's the whole vibe. 🏷️
  • -c, --config [file] β€” a JSON configuration file, bestie. and listen: if you pass no file at all, or you pass -, she reads it from STDIN. the pipes are piping. πŸ“
  • -w, --watch β€” continually rebuild πŸ”₯ she just keeps going. she keeps rebuilding. she never stops. main character energy fr fr.
  • -x, --extension <js | coffee | ...> β€” the file extension she should assume when resolving module identifiers. like <cyan>js</cyan>, or <cyan>coffee</cyan>, or honestly whatever else you need, the ... is doing a lot of heavy lifting there and we respect it πŸ’œ
  • --relativize β€” rewrites all module identifiers to be relative. every single one. periodt.
  • --follow-requires β€” she scans modules for their required dependencies πŸ‘€ following the requires like a little detective πŸ•΅οΈβ™€οΈ
  • --use-provides-module β€” respect the @providesModules pragma in files. yes ma'am, we honor the pragma πŸ™
  • --cache-dir <directory> β€” an alternate directory to use for the disk cache. if you don't like the default spot, you can move her little cache nest πŸͺΊ
  • --no-cache-dir β€” disables the disk cache entirely. no cache. none. gone. bye πŸ‘‹
  • --source-charset <utf8 | win1252 | ...> β€” the charset of the source. default: utf8 ✨
  • --output-charset <utf8 | win1252 | ...> β€” the charset of the output. default: utf8 ✨ (yes, same default, they're matching, it's cute)
  • -r, --include-runtime β€” prepends the runtime to the output. she puts it right at the front, first thing, before everything else 🌸
  • --disable-async β€” disables transformation of async functions. if you're like "bestie please leave my async alone," this is the flag for you πŸ™ˆ
  • -h, --help β€” display help for command. when in doubt, ask her πŸ’–
ok real talk: if any of these do something you don't expect, that's on you for not reading, not on her. she told you what she does. it's all right here. πŸ’€

and that's the whole page, babe. this was regenerator 0.14.10, dated October 2023 πŸ¦‹ go forth and transform. you're gonna slay. mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from