@epicallan/js-to-ts
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

npm version

Javascript to Typescript file convert

Heavily relying on lebab for es5 to es6 conversion

What it does


  • convert es5 to es6 code
  • Renames files in a directory to .ts
  • delete left over js files by commandline see commands usage below

Commands / usage


install by using yarn or npm

 npm install -g @epicallan/js-to-ts

run js-to-ts --dir <relativePath> to convert files in a specific dir

run js-to-ts to convert files in current dir

run js-to-ts -d to delete all js files in current dir

run js-to-ts -d --dir <relativePath> to delete all js files in relative dir

/@epicallan/js-to-ts/

    Package Sidebar

    Install

    npm i @epicallan/js-to-ts

    Weekly Downloads

    5

    Version

    1.1.3

    License

    ISC

    Unpacked Size

    154 kB

    Total Files

    27

    Last publish

    Collaborators

    • epicallan