n2words 1.11.1 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
 
8
+ ## [1.12.0] - 2022-09-01
9
+
10
+ ### Added
11
+ - New language: `vi` Vietnamese [#69](https://github.com/forzagreen/n2words/pull/69).
12
+
13
+ ### Changed
14
+ - Bump dev dependencies [#68](https://github.com/forzagreen/n2words/pull/68). Thanks to [@TylerVigario](https://github.com/TylerVigario) !
15
+
16
+
8
17
  ## [1.11.1] - 2022-04-08
9
18
 
10
19
  ### Changed
package/README.md CHANGED
@@ -5,7 +5,9 @@
5
5
  [![npm](https://img.shields.io/npm/v/n2words.svg)](https://npmjs.com/package/n2words)
6
6
  [![npm](https://img.shields.io/npm/dw/n2words)](https://npmjs.com/package/n2words)
7
7
 
8
- n2words is a library that converts a numerical number into a written number. We have support for multiple languages (25 and growing) and our package is lightweight, modular and has no dependencies.
8
+ n2words is a library that converts a numerical number into a written number.
9
+
10
+ We have support for multiple languages (26 and growing) and our package is lightweight, modular and has no dependencies.
9
11
 
10
12
  ## How To
11
13
 
@@ -28,6 +30,18 @@ n2words is also available on [jsDelivr](https://jsdelivr.com/package/npm/n2words
28
30
 
29
31
  ## Usage
30
32
 
33
+ ### ESM
34
+
35
+ ```js
36
+ import n2words from 'n2words'
37
+
38
+ // Source file
39
+ import n2words from 'n2words/lib/n2words.mjs'
40
+
41
+ // Individual languages (recommended)
42
+ import n2wordsEN from 'n2words/lib/i18n/EN.mjs'
43
+ ```
44
+
31
45
  ### CommonJS
32
46
 
33
47
  ```js
@@ -45,18 +59,6 @@ import('n2words/lib/i18n/EN.mjs').then(n2wordsEN => {
45
59
  })
46
60
  ```
47
61
 
48
- ### ESM
49
-
50
- ```js
51
- import n2words from 'n2words'
52
-
53
- // Source file
54
- import n2words from 'n2words/lib/n2words.mjs'
55
-
56
- // Individual languages (recommended)
57
- import n2wordsEN from 'n2words/lib/i18n/EN.mjs'
58
- ```
59
-
60
62
  ### Browser
61
63
 
62
64
  ```html
@@ -95,6 +97,7 @@ import n2wordsEN from 'n2words/lib/i18n/EN.mjs'
95
97
  - `sr` (Serbian)
96
98
  - `tr` (Turkish)
97
99
  - `uk` (Ukrainian)
100
+ - `vi` (Vietnamese)
98
101
  - `zh` (Chinese)
99
102
 
100
103
  ## Contributing