https://github.com/idkjs/resyntax
Migrate files between .re .rei .res .resi .ml .mli extensions for ocaml, reasonml, bucklescript and rescript syntaxes
https://github.com/idkjs/resyntax
Last synced: 16 days ago
JSON representation
Migrate files between .re .rei .res .resi .ml .mli extensions for ocaml, reasonml, bucklescript and rescript syntaxes
- Host: GitHub
- URL: https://github.com/idkjs/resyntax
- Owner: idkjs
- License: mit
- Created: 2021-03-16T12:32:08.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-18T09:49:18.000Z (almost 5 years ago)
- Last Synced: 2024-04-29T22:16:58.094Z (over 1 year ago)
- Language: Shell
- Size: 128 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - resyntax
README
[](https://www.npmjs.com/package/resyntax)
# [npx resyntax](https://git.io/resyntax)
Migrate files between `.re` `.rei` `.res` `.resi` `.ml` `.mli` syntaxes for [Ocaml](https://ocaml.org/),
[ReasonML](https://git.io/reasonml) and [Rescript](https://rescript-lang.org/) syntaxes.
Doesn't always work so check your output. Especially for conversions from `.res` to `.re` or when convertion functors. See https://github.com/rescript-lang/syntax/issues/264;
```sh
npx resyntax
```
Gets you:

Summary
```sh
[I] ➜ npx resyntax
Which files do you want to migrate?
1) REtoRes 4) RESItoREI 7) REtoML 10) Delete
2) REItoResi 5) MLtoRE 8) REItoMLI 11) Cancel
3) REStoRE 6) MLItoREI 9) REStoRe 12) Delete
Which files do you want to delete?
1) .re
2) .rei
3) .res
4) .resi
5) .ml
6) .mli
7) None
8) Exit
#?
```
### Other Tools
[npx bsconfig.json](https://git.io/bsconfig.json)
[npx resgitignore](https://github.com/idkjs/resgitignore)
[npx resattributes](https://github.com/idkjs/resattributes)
###[Share on Twitter...](https://twitter.com/share?url=https://dev.to/idkjs/npx-resyntax-2574)