Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
olalonde committed Sep 16, 2023
1 parent f3a4999 commit 763126e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# normalize-word

[![Node.js test](https://github.com/olalonde/normalize-word/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/olalonde/normalize-word/actions/workflows/main.yml)

Locale sensitive normalization of words.

Similar to [https://github.com/fyalavuz/node-parameterize/tree/master](https://github.com/fyalavuz/node-parameterize/tree/master).

```typescript
// examples
import normalize from "normalize-word";
import assert from "node:assert";

assert.equal(normalize("Francais"), "francais");
assert.equal(normalize("Français"), "francais");
assert.equal(normalize(" Français"), "francais");
Expand All @@ -16,3 +21,9 @@ assert.equal(normalize("español"), "espanol");
assert.equal(normalize("ESpañol"), "espanol");
assert.equal(normalize("a B c "), "a b c");
```

## Install

```console
npm install normalize-word
```

0 comments on commit 763126e

Please sign in to comment.