index.js
function saveFile(html) {
	fs.outputFile(options.outputFile, html, function(err, data) {
		if (err) {
			console.log(error('ERROR!'));
			console.dir(err);
			process.exit(1);
		}
		console.log(good('\n\nAll done!'));
		console.log('Created file: ' + good(options.outputFile));
	});
}
function saveFile(html) {
	fs.outputFile(options.outputFile, html, function(err, data) {
		if (err) {
			console.log(error('ERROR!'));
			console.dir(err);
			process.exit(1);
		}
		console.log(good('\n\nAll done!'));
		console.log('Created file: ' + good(options.outputFile));
	});
}
function saveFile ( html ) { fs . outputFile ( options . outputFile , html , function ( err , data ) { if ( err ) { console . log ( error ( 'ERROR!' ) ) ; console . dir ( err ) ; process . exit ( 1 ) ; } console . log ( good ( '\n\nAll done!' ) ) ; console . log ( 'Created file: ' + good ( options . outputFile ) ) ; } ) ; }
Save html to file

@param html
Save html to file