Initial commit.

This commit is contained in:
Alexandre Gigliotti
2015-07-22 15:51:14 -07:00
commit f8369f3bc0
8 changed files with 146 additions and 0 deletions

15
test/index.js Normal file
View File

@@ -0,0 +1,15 @@
var inline = require('../lib');
var path = require('path');
var fs = require('fs');
var filepath = path.resolve(__dirname, './index.html');
var options = {};
/**
* html -> async -> inlined html
*/
inline(filepath, options)
.then(function (html) {
console.log(html);
fs.writeFileSync('./test.html', html);
})
.catch(console.error);