REGENERATOR(1)
π 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@providesModulespragma 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 myasyncalone," 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
- debian trixie: node-regenerator 0.15.2+~0.10.8-1 Β· MIT
- ubuntu noble: node-regenerator 0.15.2+~0.10.8-1 Β· MIT
- ubuntu resolute: node-regenerator 0.15.2+~0.10.8-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms