DEV Community

Cover image for npx resyntax
Alain
Alain

Posted on

2 3

npx resyntax

npx resyntax

I mess around with files in many syntaxes. .re files get you better syntax highlighting in vscode so often I program in .re or .ml before converting to Rescript. Sharing in case it helps anyone else. It could be cleaner but it works mostly.

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
Enter fullscreen mode Exit fullscreen mode

Gets you:

run npx syntax in your terminal

Other Tools

npx bsconfig.json

npx resgitignore

npx resattributes

Share on Twitter...

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more