Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zkochan/js2ts
Converts a JavaScript project into a TypeScript project
https://github.com/zkochan/js2ts
Last synced: 28 days ago
JSON representation
Converts a JavaScript project into a TypeScript project
- Host: GitHub
- URL: https://github.com/zkochan/js2ts
- Owner: zkochan
- License: mit
- Created: 2016-12-05T16:17:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-17T19:38:04.000Z (over 7 years ago)
- Last Synced: 2024-10-26T16:54:08.730Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# js2ts
> Converts a JavaScript project into a TypeScript project
## Installation
```
npm i -g js2ts
```## Usage
1. Move all your js files to a `src/` folder in the root of your package (tests can stay in the `test/` folder).
2. Check that each js file's first line is `'use strict'`.
3. Update your package if it doesn't work in strict mode.
4. Run `js2ts` in the root of the package you wanna convert.## License
[MIT](./LICENSE) © [Zoltan Kochan](http://kochan.io)