mirror of
https://github.com/KevinMidboe/inline-html.git
synced 2025-10-29 17:40:29 +00:00
14 lines
323 B
JavaScript
14 lines
323 B
JavaScript
var inline = require('../lib');
|
|
var path = require('path');
|
|
var fs = require('fs');
|
|
|
|
var filepath = path.resolve(__dirname, './fixtures/index.html');
|
|
var options = {verbose: true};
|
|
|
|
inline(filepath, options)
|
|
.then(function (html) {
|
|
console.log(html);
|
|
fs.writeFileSync('./test.html', html);
|
|
})
|
|
.catch(console.error);
|