A CLI tool to detect non‑Baseline web features in your codebase
Web development is evolving fast, and not every browser supports every new API or feature. Baseline Scanner helps you maintain compatibility and reliability by detecting usage of web APIs that lie outside the defined “Baseline” — warning you about potentially unstable or unsupported code early in development.
- Parses JavaScript / TypeScript files and scans for Web API usage
- Cross-references usages against a Baseline database
- Reports filename, line number, and the feature name
- Provides documentation links and suggestions for alternatives
- (Planned) ESLint / Babel plugin integration
- (Planned) GitHub Action / CI integration
# Clone the repo
git clone https://github.com/bunnykisss/Baseline-Scanner.git
cd Baseline-Scanner
# Install dependencies
npm install
# Make the CLI executable (if needed)
chmod +x bin/cli.js
npm link
# Run on a project
baseline-scanner path/to/your/code
# or
node bin/cli.js path/to/your/code
Exaple usage
```bash
node bin/cli.js test/sample2.jsScanning: test/sample2.js (0.1 KB)
⚠ Found 1 potential non‑Baseline usages:
test/sample2.js:2 — navigator.share — Not in Baseline
Cheers!