Skip to content

Commit 50d507d

Browse files
committed
✨ Add comprehensive number formatting with locale and system support
1 parent 6415fff commit 50d507d

File tree

5 files changed

+1623
-34
lines changed

5 files changed

+1623
-34
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,22 @@ import { numify } from "numify";
6161

6262
const number = numify(1000);
6363
console.log(number);
64+
65+
66+
// With options
67+
const number = numify(23878437, {
68+
formatType: "in", // "en", "de", "fr", "es", "it", "se"
69+
precise: true,
70+
});
71+
72+
console.log(number);
6473
```
6574

6675
### :ballot_box_with_check: Example Output
6776

6877
```
69-
1K
78+
1K (English)
79+
23.9 Cr (Indian)
7080
```
7181

7282
---

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "numify",
3-
"version": "1.0.3",
3+
"version": "1.1.0",
44
"description": "Shortern long numbers to Human Readable K M B format",
55
"main": "dist/index.js",
66
"module": "dist/index.esm.js",

0 commit comments

Comments
 (0)