@icebob/ts-to-js
v1.0.0
Published
Convert Typescript file to (readable) Javascript file
Downloads
3
Readme
ts-to-js
It's a CLI too which is able to convert Typescript files to (readable) Javascript files. It uses ts-blank-space to remove the types from typescript files and convert them to blank spaces. After that, it uses Prettier to format the code to a more readable Javascript code.
Installation
npm install -g @icebob/ts-to-jsUsage
Print the result to the console
$ ts-to-js file.tsWrite the result to a file and use prettier
$ ts-to-js --prettier file.ts file.jsConvert all .ts files in a directory
$ ts-to-js --prettier src distOptions
--prettier, -p: Format the output with Prettier
License
ts-to-js is available under the MIT license.
Contact
Copyright (C) 2025 Icebob
