mirror of
https://github.com/KevinMidboe/inline-html.git
synced 2025-10-29 17:40:29 +00:00
11 lines
285 B
JavaScript
11 lines
285 B
JavaScript
var inline = require('../lib/inline-link-less');
|
|
var fs = require('fs');
|
|
var path = require('path');
|
|
|
|
var filepath = path.resolve(__dirname, './fixtures/index.html');
|
|
var html = fs.readFileSync(filepath, 'utf8');
|
|
|
|
inline(html, filepath, {})
|
|
.then(console.log)
|
|
.catch(console.error);
|