retext-case-police
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

retext-case-police

NPM ISC License
VS Code unified
TypeScript Prettier EditorConfig ESLint PRs Welcome

A retext plugin for checking popular names casing.

Examples:

  • ⚠️ macbook MacBook
  • ⚠️ MacOS macOS
  • 🤔
  • ⚠️ ESBuild esbuild
  • ⚠️ eslint ESLint
  • 😭

For:


Dictionaries are from case-police.

Demo

Demo screenshot of this retext plugin

Quick start

Installation

pnpm install retext-case-police

Note: 100% ESM, including dependencies
For Node.js 17 and higher (using JSON import assertions) or with --experimental-json-modules flag with Node 16.

Usage

import retextCasePolice from 'retext-case-police';

// …
  .use(retextCasePolice)
// …

// ——————— With options ————v

// Ignore words
  .use(retextCasePolice, { ignore: ['GitHub'] })

To do

  • [x] Ignore words
  • [x] Resolve Parcel stripping out assert { type: 'json' }
  • [ ] Ignore links (e.g https:// wrongly flagged)
  • [ ] Custom dictionaries embedding?

See CHANGELOG.md for release history.


🔗  JulianCataldo.com

Package Sidebar

Install

npm i retext-case-police

Weekly Downloads

13

Version

1.1.7

License

ISC

Unpacked Size

10.8 kB

Total Files

6

Last publish

Collaborators

  • julian.cataldo