@poamslayer/ecfr
v0.1.2
Published
CLI for the Electronic Code of Federal Regulations (eCFR) API
Maintainers
Readme
ecfr
CLI for the Electronic Code of Federal Regulations (eCFR) API.
Search, browse, and read federal regulations from your terminal.
Install
npm install -g ecfrOr run directly:
npx ecfr titlesCommands
List all CFR titles
ecfr titlesList agencies
ecfr agencies
ecfr agencies --filter defenseBrowse title structure
ecfr structure 32
ecfr structure 32 --date 2025-01-01Read regulation text
ecfr read 32 --part 2002 --section 2002.14
ecfr read 32 --part 2002 --xml # raw XML output
ecfr read 48 --part 252 --date 2025-06-01Search regulations
ecfr search "controlled unclassified information"
ecfr search "cybersecurity" --title 32
ecfr search "CUI" --page 2 --per-page 5Search result counts
ecfr counts "cybersecurity"
ecfr counts "cybersecurity" --agency defense-departmentTrack changes
ecfr changes 32 --since 2025-01-01
ecfr changes 48 --part 252View corrections
ecfr corrections
ecfr corrections --title 32Output modes
| Context | Output |
|---------|--------|
| Terminal (TTY) | Colored tables and formatted text |
| Piped (\| jq) | JSON |
| --json flag | JSON (always) |
Requirements
Node.js 18+
API
This tool wraps the public eCFR API. No authentication required.
License
MIT
