Metadata-Version: 2.4
Name: rulestamp-bem-class-extractor-html
Version: 0.1.7
Summary: 16 BEM naming rules read the HTML file you have open and 22 markup and SCSS skeletons write the stylesheet shell, so the class names get fixed before the pull request comes back for them. (bundled Node.js runtime)
Author-email: Rulestamp <support@getreadystack.com>
License: Proprietary - see LICENSE.txt
Project-URL: Homepage, https://getreadystack.com/tools/bem-class-extractor-html?ref=pypi
Project-URL: Documentation, https://getreadystack.com/tools/bem-class-extractor-html?ref=pypi
Project-URL: Support, https://getreadystack.com/support
Keywords: bem,html,scss,css,class names
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Console
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: nodejs-wheel-binaries>=20
Dynamic: license-file

# BEM Class Auditor for HTML and SCSS

> Runs the same checker as our npm package on a Node.js runtime that pip installs for you (`nodejs-wheel-binaries`) - no system Node.js needed. Your files are checked locally.

![BEM Class Auditor - HTML and SCSS naming — finds the line](https://getreadystack.com/img/promo/bem-class-extractor-html_demo.gif)

16 BEM naming rules read the HTML file you have open and 22 markup and SCSS skeletons write the stylesheet shell, so the class names get fixed before the pull request comes back for them.

## Install

```
bem-class-extractor-html file.htm
```

Node 18+. The same 16 rules as the VS Code extension, from a terminal or CI.

## Free

- Audits the HTML file you have open against all 16 BEM naming rules and lists every finding with its line number, and inserts any of the 22 markup and SCSS skeletons at the cursor. One file is finished, with no licence key and nothing withheld.
- `--rules` lists every rule

## With a licence ($39 once)

- Runs the same 16 rules across every HTML file in the repository instead of only the one on screen, and writes the findings out as a CSV, JSON or HTML file you can attach to the pull request.

```
bem-class-extractor-html --dir ./templates --report html --out report.html
```

$73 an hour, the 2026 average freelance front-end developer rate (arc.dev, contractrates.fyi); a naming pass over a themed repo is at least one of those hours, and US mid-level contract rates run $89-$140.

## Use from an AI agent (MCP)

Claude Code · Cursor · Windsurf · any MCP client - add to your MCP config:

```json
{ "mcpServers": { "bem-class-extractor-html": { "command": "bem-class-extractor-html", "args": ["--mcp"] } } }
```

Tools: `check_text` and `check_file` (free) · `check_dir` (licence). The agent gets every finding with the line number.

## Use in CI

```yaml
- name: BEM Class Auditor for HTML and SCSS
  run: pip install rulestamp-bem-class-extractor-html && bem-class-extractor-html --dir . --ci
```


The folder sweep, reports and CI mode need one licence — one payment, no subscription. Set `READYSTACK_LICENSE=<key>` or run `--license <key>` once.

[Get a licence](https://getreadystack.com/api/buy/cl/polar_cl_KpshZaXMI3nFFxkyC13chl0cdxza8558hpEYP2ERbwy)


<!-- bem class extractor html -->


## Install (PyPI)

```
pip install rulestamp-bem-class-extractor-html
bem-class-extractor-html --help
```
