mirror of
https://github.com/panosoft/inline-html
synced 2026-01-13 13:04:30 -08:00
Initial commit.
This commit is contained in:
15
test/index.js
Normal file
15
test/index.js
Normal 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);
|
||||
Reference in New Issue
Block a user