dereserve
Provides dereserve
command to recast all ES3 reserved words to their safe alternatives.
Using es3-safe-recast under the hood.
CHANGELOG
See CHANGELOG
USAGE
Run dereserve example.js > build/example.js
or cat example.js | dereserve > build/example.js
transforms
ajax('/asdf/1').catch(function(reason) {
}).finally(function() {
});
to
ajax('/asdf/1')["catch"](function(reason) {
})["finally"](function() {
});
INSTALL
via npm
Install locally,
$ npm install --save-dev dereserve
and/or globally.
$ npm install -g dereserve
AUTHOR
LICENSE
Licensed under the MIT license.