marcomontalbano/html-miner

View on GitHub
debug.js.sample

Summary

Maintainability
Test Coverage
const htmlMiner = require('./lib')

const html = `
<h3>Hello World!</h3>
`;

const selector = 'h3';

console.log(
    JSON.stringify(htmlMiner(html, selector), undefined, 2)
);