npm install eof 
Extract template from multi-line comment inside function body.
I use it in tests when you don't want to make templates outside of the test.
So it looks more readable than an array of strings or multi-line strings (I believe in it)
and simple then outside file.
Enjoy testing!
Install the module with: npm install eof
``javascript`
var eof = require('eof');
eof.extract(function() {
/*
Hello World
*/
});
Extract simple text template
`javascript`
var eof = require('eof');
eof.extract(function() {
/*
Hello World
*/
});
Extract javascript template. And format it throught js-beautify
`javascript``
var eof = require('eof');
eof.extract(function() {
/*
var max = function() {
return Math.max.apply(null, arguments);
};
*/
}).format('javascript');
You can look at test directory for live example