normalize_diacritics

Remove accents/ diacritics in string


MIT License

Simple deno module to remove any accents/ diacritics found in a string.

Table of contents

Usage

/** Import from GH via `denopkg` */
import { normalize } from "https://denopkg.com/motss/deno_mod@v0.6.1/normalize_diacritics/mod.ts";

(async () => {
  const str = "söme stüff with áccènts";

  await normalize(str); // 'some stuff with accents'
})();

API Reference

normalize([input])

This method normalizes any accents/ diacritics found in a given input string and output a normalized string as a result.

normalizeSync([input])

This methods works the same as normalize([input]) except that this is the synchronous version.

License

MIT License © Rong Sen Ng


View repository on GitHub