class-extractor READMEExtracts CSS classes from a selection of markup and formats it into a useable list to paste into your CSS/LESS/SASS/whatever. Uses htmlparser2 so should be reasonably good at finding the right stuff. Install
UsageClass Extractor adds two commands, It's recommended to edit your output format in the JSON settings editor as the VS Code interface doesn't render newlines and will escape backslash characters. RequirementsUses the ncp package, may require external dependencies in Linux and macOS. Development
Future Plans
Release Notes1.1.1Fixed default output format 1.1.0Rewrote BEM option and allowed for custom output templating 1.0.4Added BEM option for indented languages like LESS and SCSS thanks to @LuisReinoso 1.0.3Added some install and usage documentation and fixed dependency vulnerabilities 1.0.1Many minor fixes. Tags with no attributes, empty classes and things other than tags (script blocks, comments etc...) will now be properly ignored 1.0.0Initial release ThanksSpecial thanks to ardcore for this Atom plugin from which this extension draws its origins. |