1.0.0 • Published 1 year ago
normalized-contains v1.0.0
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
1.0.0
1 year ago