make-it-rain 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. package/README.md +7 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # 💸 make-it-rain 💸
2
- [![Version](https://img.shields.io/badge/version-1.1.1-blue)](https://npmjs.com/package/make-it-rain) [![Node.js](https://img.shields.io/badge/node-%3E%3D12.0-brightgreen)](https://nodejs.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2
+ [![Version](https://img.shields.io/badge/version-1.1.1.1-blue)](https://npmjs.com/package/make-it-rain) [![Node.js](https://img.shields.io/badge/node-%3E%3D12.0-brightgreen)](https://nodejs.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
3
 
4
4
  ### The Only Money Formatter You'll Ever Need (Probably)
5
5
 
@@ -27,14 +27,15 @@ yarn add make-it-rain
27
27
  ## 🛠️ Usage
28
28
  Initialize this life-changing formatter once, then flex on your ugly numbers forever.
29
29
 
30
+
30
31
  ```js
31
- const makeItRain = require("make-it-rain");
32
+ const makeItRain = require("make-it-rain");
32
33
 
33
- const money = makeItRain("EUR", "."); // Set it and forget it
34
+ const money = makeItRain("EUR", ".", true); // Set it and forget it
34
35
 
35
- console.log(money.makeItPretty(1234567.89)); // €1.234.567,89
36
- console.log(money.makeItPretty(99.99)); // €99,99
37
- console.log(money.makeItPretty(1000000)); // €1.000.000,00
36
+ console.log(money.makeItPretty(1234567.89)); // €1.234.567,89
37
+ money.useWhat(false); // Switch to ISO code mode
38
+ console.log(money.makeItPretty(1234567.89)); // EUR 1.234.567,89
38
39
  ```
39
40
 
40
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-it-rain",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Because who formats money manually like a peasant?",
5
5
  "main": "index.js",
6
6
  "bin": {