🎉 v1.0.0 stable release
Notable changes:-
-
Now ship with multiple bundles:
a.
esm
- Targeting native ES modules such as TypeScript.
b.cjs
- TargetingNode.js
withCommonJS
.
c.iife
- Targeting older browsers by compiling toIIFE
andES5
. -
Fixed a bug where single-character string is not being normalized.
-
Alternatively, you can rely on third-party services to grab the bundle: unpkg and jsdelivr.
Deno support
It's cool to see this project gaining traction by the community. Because of that, I've decided to add more support for this particular project. It's officially supported as a deno package and is available at awesome-deno where it lists all the deno packages by the community.
Try it now as of today!
import { normalize } from 'https://denopkg.com/motss/[email protected]/index.ts';
(async () => {
const str = 'söme stüff with áccènts';
await normalize(str); // 'some stuff with accents'
})();