function-stringify
Stringify functions, or more specifically their comments!
You know, because you might want a function body to store something other than just JavaScript.
Install
npm install function-stringify
Example
var fnStringify = var template = console
Usage
var fnStringify =
fnStringify(fn, format)
fn
is a function declaration whose body contains a comment block in the format of /* content */
.
format
is a boolean flag which when set to true fnStringify
will attempt to preserve the formatting of the enclosed content string.
License
MIT