1.0.0 • Published 1 year ago

normalized-contains v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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