normalized-contains
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

normalizedContains

A helper to compare two normalized versions of strings by ignoring language specific diacritics and case.

Usage

import { normalizedContains } from 'normalized-contains';

normalizedContains('Théâtre antique', 'theatre'); // true
normalizedContains('Halló', 'hallo'); // true
normalizedContains('Halló', 'hello'); // false

Install

npm install normalized-contains

Package Sidebar

Install

npm i normalized-contains

Weekly Downloads

49

Version

1.0.0

License

MIT

Unpacked Size

7.83 kB

Total Files

13

Last publish

Collaborators

  • everdimension