Sylvanas
A tool to convert TypeScript to JavaScript with human-like code style.
How to use
npm install --save-dev sylvanas
sylvanas(files: string[], option?: Option)
const sylvanas = ; const files = glob; const fileList = ; fileList;
Option
cwd - string
The current working directory in which to search. Defaults to process.cwd()
.
none
| write
| overwrite
action - Default none
. Set what will Sylvanas do with files:
write
: Write new file with name of suffix.js
or.jsx
.overwrite
: Likewrite
but will remove origin files.
outDir - string
Set the write file folder. Defaults to cwd
.
decoratorsBeforeExport - boolean
Same as babel decoratorsbeforeexport.