# antfu/case-police

🚨 Make the case correct, PLEASE!

Repository: https://github.com/antfu/case-police
Canonical: https://ross.abutalabs.com/products/case-police
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-04-15T01:48:52+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 77, release rhythm 67, longevity 100
- inputs: {"age_days": 1616, "days_push": 141, "days_rel": 141, "gap_med": 49, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1428, forks 90 (observed 2026-08-28T04:04:42.072588+00:00)

## What it is
CasePolice is a CLI tool and ESLint plugin that checks and fixes the casing of well-known product and technology names (e.g., GitHub, TypeScript, macOS) in source files. It ships with a built-in dictionary, supports custom dictionaries and presets, and can run in CI to fail on incorrect casing.

## Use cases
- fix incorrect casing of product names like Github to GitHub across a repo
- lint docs and source files for wrong brand name casing
- enforce correct name casing in CI pipelines
- check only markdown files for casing mistakes
- use a custom dictionary of project-specific names
- add casing rules to an ESLint flat config

## When to choose
- you want automated, dictionary-driven correction of well-known name casing in text files
- you need a lightweight CI check for casing errors
- you already use ESLint and want casing rules integrated

## When to avoid
- you need general-purpose spell checking or grammar linting
- you want to enforce casing of arbitrary identifiers in code rather than known names
- you need a full style guide enforcement tool like Vale

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, linter, formatter, developer-tools
- domain: developer-tools, text-editors, documentation
- platform: cli, cross-platform
- tags: eslint-plugin, casing, typography, code-style, npm, command-line, nodejs

## Member repositories
- antfu/case-police (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:42.072588+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:37:18.395758+00:00, confidence not recorded.
  - readme: https://github.com/antfu/case-police (fetched 2026-08-28T04:04:42.072588+00:00, sha 722a7a5fd306)
  - registry_npm: https://registry.npmjs.org/case-police (fetched 2026-08-29T11:49:12.441090+00:00, sha 200aac5ad152)
- Data as of 2026-08-30T08:39:29.467469+00:00.
