0.2.0 • Published 6 years ago

javascript2typescript v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

javascript2typescript

The library is a helper to convert JavaScript to TypeScript.

Features

  • define class/instance properties
  • convert require/exports to import/export
  • migrate jsdoc into type definition

How to run

$ npx javascript2typescript <dirname or filename>

// or

$ npm install -D javascript2typescript
$ npx j2t <dirname or filename>

//or 

$ yarn add -D javascript2typescript
$ yarn j2t <dirname or filename>

Options

commanddescription
--writecreate TypeScript files
--rmremove JavaScript files
-dconvert export = xxx to export default xxx
0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago