Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

dereserve

twada32MIT1.0.0

provides dereserve command to recast all ES3 reserved words to their safe alternatives

ecmascript

readme

dereserve

Provides dereserve command to recast all ES3 reserved words to their safe alternatives.

Build Status NPM version Dependency Status License

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.

changelog

1.0.0 (2016-06-09)

  • the first stable release
  • update es3-safe-recast to 2.0.1

0.1.1 (2015-04-22)

  • update recast to 0.10.12

0.1.0 (2014-12-24)

  • initial release