Announcing defs.js, an ES6 const|let to ES3 var transpiler

78 views
Skip to first unread message

Olov Lassus

unread,
May 4, 2013, 2:14:01 PM5/4/13
to js-t...@googlegroups.com
I just wanted to give the js-tools list a heads up about a tool I
released at Front Trends last week, defs.js
<https://github.com/olov/defs>. Defs transpiles ES6 block scoped const
and let declarations to beautiful ES3 code using vars. It’s also a
pretty decent linter when it comes to variable and scope analysis.

Defs work solely by static analysis and (occasional) variable
renaming, and it works really well. It's already in use for production
code.

I wrote more about the background for it and how it works at my blog,
<http://blog.lassus.se/2013/05/defsjs.html>. I won't replicate that
text here but I'd be more than happy to answer any questions you may
have about it.

Using it is as easy as `npm install defs` followed by `defs
mycode.js`. You can also just go to the blog post above, bring up your
console and start sending code snippets to the `defs` function.

I hope it will be useful for others! Cheers, /Olov
Reply all
Reply to author
Forward
0 new messages