normalized-contains
v1.0.0
Published
Checks whether a normalized version of a string contains another string
Downloads
162
Maintainers
Readme
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