Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
var fs = require('fs');
/**
* Expose `write`.
*/
module.exports = write;
/**
* Write `contents` to a `file`, falling back to stdout.
*
* @param {String} file
* @param {String} contents
*/
function write (file, contents) {
if (1 == arguments.length) contents = file, file = null;
if (file) return fs.writeFileSync(file, contents);
process.stdout.write(contents);
}