Skip to content

Baseline Scanner is a command-line tool that analyzes your web project and scans for features that are not part of the Web Baseline

License

Notifications You must be signed in to change notification settings

bunnykisss/Baseline-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baseline Scanner 🛡️

License: MIT
GitHub stars
Issues

A CLI tool to detect non‑Baseline web features in your codebase


🚀 What is Baseline Scanner?

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.


✨ Features

  • 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

🛠️ Installation & Usage

# 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.js
Scanning: test/sample2.js (0.1 KB)
⚠ Found 1 potential non‑Baseline usages:
test/sample2.js:2 — navigator.share — Not in Baseline

Cheers!

About

Baseline Scanner is a command-line tool that analyzes your web project and scans for features that are not part of the Web Baseline

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published