1. es3-safe-recast
esprima/recast es3 safe compile step
es3-safe-recast
Package: es3-safe-recast
Created by: stefanpenner
Last modified: Fri, 17 Jun 2022 08:53:12 GMT
Version: 3.0.0
License: ISC
Downloads: 3,573
Repository: https://github.com/stefanpenner/es3-safe-recast

Install

npm install es3-safe-recast
yarn add es3-safe-recast

es3-safe-recast Build Status

Recasts all ECMAScript 3 reserved words to their safe alternatives.

Optionally removes trailing commas in object and array literals (pass { trailingComma: true } as the second argument to compile).

helpers

Before

 ajax('/asdf/1').catch(function(reason) {

}).finally(function() {

});

After

 ajax('/asdf/1')['catch'](function(reason) {

})['finally'](function() {

});

Before

 object = {
  catch:   function() {},
  finally: function() {},
  default: function() {}
};

After

 object = {
  'catch':   function() {},
  'finally': function() {},
  'default': function() {}
};

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin