News for hackers. Stuff that matters.
Re:Multiline strings in JavaScript by andrelaszlo on Saturday July 12, 2014 @07:41AM (#8024305)
This snippet does the same thing, mostly:

    var multiline = function(){/*
    foo
    bar
    baz
    */}.toSource().match(/\/\*([\s\S]*)\*\//)[1].trim()
Re:Multiline strings in JavaScript by mofle on Saturday July 12, 2014 @07:45AM (#8024314)
Yeah, pretty much, but in Node we wrap repetitive things in modules, as they're super cheap. Your snippet is also missing some things like indentation stripping, error handling and browser support.