npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

baseline-check-cli-tool

v1.0.1

Published

CLI tool to prevent deployment of unsafe modern web features based on Baseline year standards

Readme

baseline-check

npm version License: MIT

🛡️ Prevent unsafe modern web features from breaking your deployments

A powerful CLI tool that checks your JavaScript, CSS, and HTML code against Baseline web standards, ensuring your features are supported across browsers for your target year.

🌐 Live Demo

Try it out instantly: https://baseline-check.netlify.app/playground

✨ Features

  • 🔍 Multi-language Support - Scans JavaScript, TypeScript, CSS, and HTML files
  • 📊 Baseline Standards - Uses official web-features dataset for accurate compatibility data
  • CI/CD Ready - Integrates seamlessly with GitHub Actions, Jenkins, and other CI systems
  • 🎯 Configurable - Set your target Baseline year (2021, 2022, 2023, 2024+)
  • 📝 Detailed Reports - Generate comprehensive compatibility reports
  • 🚀 Fast & Lightweight - Minimal dependencies, maximum performance

📦 Installation

Global Installation (Recommended)

npm install -g baseline-check

Project-specific Installation

npm install --save-dev baseline-check

Quick Setup

# Install globally and create config
npm install -g baseline-check
baseline-setup

# Or use npx without installation
npx baseline-check --help

🚀 Quick Start

1. Create Configuration

Create a baseline.config.json file in your project root:

{
  "baseline": "2023",
  "include": ["src/**/*.{js,ts,css,html}"],
  "exclude": ["node_modules/**", "dist/**"]
}

2. Run Check

# Check your code
baseline-check

# Generate detailed report
baseline-check --report

# Check specific files
baseline-check src/app.js styles/main.css

📋 Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | baseline | string | "2023" | Target Baseline year (2021, 2022, 2023, 2024) | | include | string[] | ["**/*.{js,ts,css,html}"] | File patterns to include | | exclude | string[] | ["node_modules/**"] | File patterns to exclude | | strict | boolean | false | Fail on any unsafe features | | report | boolean | false | Generate detailed report file |

🔧 CLI Usage

# Basic usage
baseline-check

# With options
baseline-check --baseline 2022 --report --strict

# Check specific files
baseline-check src/app.js public/index.html

# Show help
baseline-check --help

# Show version
baseline-check --version

🔄 CI/CD Integration

GitHub Actions

Create .github/workflows/baseline-check.yml:

name: Baseline Compatibility Check

on:
  push:
    branches: ["*"]
  pull_request:
    branches: ["*"]

jobs:
  baseline:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'
      - name: Install dependencies
        run: npm install
      - name: Run baseline-check
        run: npx baseline-check --strict --report

📊 Example Output

$ baseline-check

🛡️  Baseline Check v1.0.0

📁 Scanning files...
   ✓ Found 15 files to check

🔍 Analyzing features...
   ✓ JavaScript: 8 files
   ✓ CSS: 4 files  
   ✓ HTML: 3 files

📋 Results for Baseline 2023:
   ✅ 12 safe features
   ❌ 2 unsafe features

⚠️  Unsafe Features Found:
   • CSS :has() selector (requires Baseline 2024)
   • Dialog element (requires Baseline 2024)

💡 Run with --report for detailed analysis
🚨 Use --strict to fail CI on unsafe features

🎮 Interactive Playground

Test your code instantly in our web playground: https://baseline-check.netlify.app/playground

🧪 Supported Features

JavaScript/TypeScript

  • Optional chaining (?.)
  • Nullish coalescing (??)
  • Private class fields (#private)
  • Top-level await, Dynamic imports, BigInt
  • And many more...

CSS

  • Container queries, :has() selector
  • CSS Grid, Flexbox gap, Nesting
  • Custom properties, Cascade layers
  • And many more...

HTML

  • Dialog element, Details/Summary
  • Custom elements, Web components
  • And many more...

🔗 Links


Made with ❤️ for safer web deployments