Metadata-Version: 2.4
Name: rulestamp-erb-escape-audit
Version: 1.0.7
Summary: 15 rules that find every line in a Rails .erb view where output escaping was switched off or was the wrong escaping. (bundled Node.js runtime)
Author-email: Rulestamp <support@getreadystack.com>
License: Proprietary - see LICENSE.txt
Project-URL: Homepage, https://getreadystack.com/tools/erb-escape-audit?ref=pypi
Project-URL: Documentation, https://getreadystack.com/tools/erb-escape-audit?ref=pypi
Project-URL: Support, https://getreadystack.com/support
Keywords: erb,rails,xss,html_safe,security,ruby,linter,template
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

# ERB Escape Audit - Rails XSS lint

> 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.

![ERB Escape Audit - Rails XSS lint — finds the line](https://getreadystack.com/img/promo/erb-escape-audit_demo.gif)

15 rules that find every line in a Rails .erb view where output escaping was switched off or was the wrong escaping.

## Install

```
erb-escape-audit file
```

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

## Free

- Audit the .erb file you have open: every unescaped-output line with its line number, severity and the escaping helper that fixes it - no key, no cap, no watermark.
- `--rules` lists every rule

## With a licence ($29 once)

- Sweep every .erb file in the workspace in one run and write a dated Markdown/CSV report you keep as the evidence artefact for a release note or a vulnerability-handling record.

```
erb-escape-audit --dir ./templates --report html --out report.html
```

A freelance Rails developer doing the same template review by hand bills $75-$150 an hour.

## Use from an AI agent (MCP)

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

```json
{ "mcpServers": { "erb-escape-audit": { "command": "erb-escape-audit", "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: ERB Escape Audit - Rails XSS lint
  run: pip install rulestamp-erb-escape-audit && erb-escape-audit --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_XWEOA6J245vtVZGR660GkeoZbO1MW3g23VZSp3goB02)


<!-- erb escape audit -->


## Install (PyPI)

```
pip install rulestamp-erb-escape-audit
erb-escape-audit --help
```
