escodegen icon indicating copy to clipboard operation
escodegen copied to clipboard

ECMAScript code generator

Results 108 escodegen issues
Sort by recently updated
recently updated
newest added

Hello, thank you for the awesome project. I received an "Unknown node type ExperimentalSpreadProperty" error as I was traversing the ast tree with [estraverse](https://github.com/estools/estraverse). So I decided to add `ExperimentalSpreadProperty:...

current estraverse version: 4.2.0 escodegen uses: 1.9.0 It fails generating ES6 code as old estraverse doesn't recognize new types like ExportNamedDeclaration

Is there an option to keep the raw value for literals? For example, using the online tool: https://estools.github.io/escodegen/demo/index.html I enter in the text box: var doubleValue = 0.0; And it...

escodegen with options `{format:{json:true}}` generates values in json style. i want generate json keys too. like this: `{"block":"block1"}` not like this: `{block:"block1"}`

When I try to generate a sample of code with a huge amount of BinaryExpression, I get the RangeError: Maximum call stack size exceeded error message. I tried to figure...

I'm using the escodegen.browser.js in conjunction with require.js in a web application, and the exports from estraverse (and specifically attachComments) are undefined. If I remove the use of require.js, the...

I had a look at using escodegen within a Node app to [safely inject configuration globals into HTML5 apps](http://grimoire.ca/dev/configuring-browser-apps). It looked pretty promising, but one of my test cases fails:...

I'm facing a problem where when I try to generate the code from a parsed tree created with esprima and I have the parse option set to esprima.parse. The code...

I used version in http://esprima.org/demo/rewrite.html this code `(/**/function(){}())` returns ``` /**/ function () { }(); ``` and should ``` (/**/ function () { }()); ```

This ast { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports" }, "property":{ "type": "Identifier", "name": "toString" }...