npx resyntax
Migrate files between .re
.rei
.res
.resi
.ml
.mli
syntaxes for Ocaml,
ReasonML and Rescript 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;
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
npx resgitignore
npx resattributes
Share on Twitter...