@zerodep/string-deburr
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

@zerodep/string-deburr

version language types license

CodeFactor Known Vulnerabilities

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

Readme

Keywords

Package Sidebar

Install

npm i @zerodep/string-deburr

Homepage

zerodep.app

Weekly Downloads

18

Version

2.0.5

License

MIT

Unpacked Size

7.79 kB

Total Files

7

Last publish

Collaborators

  • cdepage