Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)