From 92e86643abfd785be615018644dd105a9053c385 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Fri, 22 Jan 2016 15:03:33 -0500 Subject: [PATCH] write file, don't console.log --- Gruntfile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 333f4a4..b546b30 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,4 +1,5 @@ var converter = require('./index.js'); +var fs = require('fs'); module.exports = function(grunt) { grunt.initConfig({ @@ -21,8 +22,9 @@ module.exports = function(grunt) { grunt.registerTask('convert-tabs-to-html', function(){ var done = this.async(); converter('test.txt', function(result){ - console.log(result); - done(); + fs.writeFile('result.html', result, function(){ + done(); + }); }); });