Skip to content

Instantly share code, notes, and snippets.

View lawlesscreation's full-sized avatar

Matt Lawson lawlesscreation

View GitHub Profile
@lawlesscreation
lawlesscreation / count-classes.js
Created March 20, 2021 14:44
Count classes in HTML files using Node
'use strict';
const fs = require('fs');
const path = require('path');
console.log('🛠 Scanning HTML files...');
const files = getAllFiles('./', ['.html']);
const classCount = countClasses(files);
@lawlesscreation
lawlesscreation / count-tags.js
Last active March 17, 2021 08:58
Count tags in HTML files using Node
'use strict';
const fs = require('fs');
const path = require('path');
console.log('🛠 Scanning HTML files...');
const files = getAllFiles('./', ['.html']);
const tagCount = countTags(files);