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

Input: ``` let variable = // comment 3+3; ``` Output: ``` let variable = // comment 3 + 3; ``` Expected output: ``` let variable = // comment 3 +...

Input: ``` var foo = /* comment */ ( 42 ); ``` Output: ``` var foo = 42; ```

I currently use esprima + some traversal code that I wrote to transform JS syntax from A -> B. I'd much prefer to simply modify the AST from esprima and...

I have no idea what I'm doing but it works. Probably it can be done in a more simple way.

It's impossible to use library from CDN service like https://cdn.jsdelivr.net/npm/escodegen/ because browser file is missing in NPM. NPM is not only for node.

It you have a comment in argument list of a function, then the comment is not included in the output. ``` function f1(a, /* my comment */ c) { }...