escodegen
escodegen copied to clipboard
ECMAScript code generator
I'm need to modify js file. So I parse my JSX with esprima, make some changes and then I'm trying to code AST into js. But I have this error...
This builds on #410 in such a way as to use Rollup instead of browserify. I used browserify in that PR as it meant there were fewer changes necessary, but...
- Breaking change: Remove bower-registry-client build (bower deprecated) - Linting: Apply some basic fixes - Update: Use new SourceMapConsumer API in test - Build: Provide browserified builds with npm package...
Just found that this expression is valid according to escodegen: ```Javascript !{ "type": "TemplateLiteral", "expressions": [], "quasis": [ { "type": "TemplateElement", "value": { "raw": "hello ${prompt('I CAN DO XSS')}!" }...
Hi, There is a fork of [email protected] which is 4x times faster and still sync and written in JS only and compatible with Node 6+ More info about fork here:...
i was playing around with AST by using [acorn](https://github.com/acornjs/acorn). Acorn has a plugin to parse code with static class fields. https://github.com/acornjs/acorn-static-class-features Unfortuallity escodegen can't handle this feature. So i wrote...
Adds JSX support. **Notes** - Changed the general test suite to use the esprima dependency rather than 1.0.0-dev - Upgraded esprima from 3.1.3 to 4.0.1 for improved JSX support in...
This is required because Acorn uses acorn-class-fields.