jed / lave

eval in reverse: stringifying all the stuff that JSON.stringify won't

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

value lavenoitaua appends semicolons and it's not that useful

kapouer opened this issue · comments

Let's say i want to do

'myfunc(' + args.map(arg => lave(arg, {generator: esgen})).join(', ') + ') { // some body }'

the semicolons just get in the way.

you can use {format: {semicolons: false}} in the escodegen options to omit semicolons, or serialize an array and then remove the ends.

Thank you for the tip.