count-html-nodes
v0.0.1
Published
A simple package to count the number of HTML nodes in a given HTML file.
Downloads
78
Readme
count-html-nodes
A simple package to count the number of HTML nodes in a given HTML file.
Installation
npm install count-html-nodes
Usage
const { countHtmlNodes } = require('count-html-nodes');
const fs = require('fs');
const filePath = '/path/to/your/file.html';
const html = fs.readFileSync(filePath, 'utf8');
const nodeCountMap = countHtmlNodes(html);
console.log(`Number of HTML nodes: `);
console.log(nodeCountMap);
License
MIT