Skip to content

Instantly share code, notes, and snippets.

@emilisto
Last active December 18, 2015 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilisto/c43a39cfbfc88645e502 to your computer and use it in GitHub Desktop.
Save emilisto/c43a39cfbfc88645e502 to your computer and use it in GitHub Desktop.
var template = function(options) {
return util.format(
"I am static string: %s, And I'm from a file: %s",
options.str, options.filedata
);
};
fill({
'filedata': fs.createReadStream('/proc/cpuinfo'),
'str': 'I am fed!'
}, template).pipe(process.stdout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment