2.0.5 • Published 2 months ago
@zerodep/string-deburr v2.0.5
@zerodep/string-deburr
A utility to convert accented characters to their equivalent ASCII values. Non-string values will cause a ZeroDepError
to be thrown.
Full documentation is available at the zerodep.app page.
Examples
All @zerodep packages support both ESM and CJS.
import { stringDeburr } from '@zerodep/string-deburr';
// or
const { stringDeburr } = require('@zerodep/string-deburr');
Use Cases
stringDeburr('àëîóüý Žøñç'); // "aeioUy Zonc"
stringDeburr('Hello There!ç'); // "Hello THere!"
Unsuccessful Response
stringDeburr({ not: 'a string' }); // throws ZeroDepError: Value is not a string