multiline-ast
Take an esprima AST and convert multiline-style comment functions into strings.
Usage
multiline(ast)
Pass an esprima-generated ast
object to the module to traverse the tree and
replace functions in the following style:
var {/*hello world*/}
With strings, such as this:
var x = '\n hello world\n'
Note that you must pass the correct options to esprima while parsing to include comment information correctly, i.e.:
var ast = esprima
License
MIT. See LICENSE.md for details.