Files
inline-html/test/index.js

16 lines
341 B
JavaScript
Raw Normal View History

2015-07-22 15:51:14 -07:00
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);