prior
Version:
Create a list of prior inventions based on your Open Source work
16 lines (12 loc) • 366 B
JavaScript
;
var fs = require('fs')
, path = require('path');
/**
* Write the whole uniquely generated list to a human readable JSON file.
*
* @param {Array} list List of prior inventions.
* @api public
*/
module.exports = function formatter(list) {
fs.writeFileSync(path.join(process.cwd(), 'prior-inventions.json'), JSON.stringify(list, null, 2));
};