futurescript v2.6.0
Please visit https://futurescript.org/ to learn the language.
Requirements
- Node.js 18 or higher
- npm 8 or higher
Command Usage
npm install futurescript -gThe generated JS works on any JS environment that supports ECMAScript 2017, including browser and Node.js.
fus (compile | c) [--map] <file-or-directory> [<target-file-or-directory>]
fus (legacy-compile | lc) [--map] <file-or-directory> [<target-file-or-directory>]
fus (version | v | --version)
fus --helpTo compile (to .mjs), use compile or c.
To compile (to .js), use legacy-compile or lc.
Those two are exactly the same except for the file extension.
--map will add the line numbers of the source to the generated code. Useful for debugging. (Note: this is not "source map", which is another technology.)
Because we use a very sophisticated versioning model that all historical compilers are kept, there's really no need to install it to your project directory - conflicts are very unlikely. But if you really "hate global", to avoid waste of disk space, it should be stated in "devDependencies", not "dependencies" (particularly when you're writing a middleware).
Examples
Compile "a.fus" to "a.mjs":
fus compile a.fusCompile for debugging:
fus compile --map a.fusCompile the whole "lib" directory to "target":
fus compile lib targetDevelop This Project
See "develop.md".
Changelog
See history.
License
See "LICENSE.txt".
3 years ago
5 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago