make-it-rain 1.1.0 → 1.1.1

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 +12 -8
  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.0-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-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
 
@@ -36,6 +36,17 @@ console.log(money.makeItPretty(1234567.89)); // €1.234.567,89
36
36
  console.log(money.makeItPretty(99.99)); // €99,99
37
37
  console.log(money.makeItPretty(1000000)); // €1.000.000,00
38
38
  ```
39
+
40
+
41
+ | Method | Description |
42
+ |--------|-------------|
43
+ |`makeItRain(currency, separator, useSymbol)` | Initializes the formatter once. Currency = any ISO currency code, separator = `,` or .`,` useSymbol = `true` for symbols (`$`), `false` for codes (`USD`). |
44
+ | `makeItPretty(amount)` | Takes a number and makes it visually acceptable.|
45
+ | `swapMoney(newCurrency)` | Change the currency to something else, because why not? |
46
+ | `useWhat(symbol)` | Toggle between using currency symbols (`$`) or ISO codes (`USD`). |
47
+ | `whatNow()` | Returns the current currency, in case you forgot. |
48
+
49
+
39
50
  ## 🎩 Features (That Should Have Existed in JavaScript Already)
40
51
  - One-time setup: Set currency & separator once, use it everywhere.
41
52
  - Formats numbers beautifully: Because nobody likes reading 1000000.00.
@@ -47,13 +58,6 @@ console.log(money.makeItPretty(1000000)); // €1.000.000,00
47
58
  - Fix your bad financial decisions: Your debt is still your problem.
48
59
  - Magically make you rich: But hey, your numbers will look expensive.
49
60
 
50
- ##
51
-
52
- | Method | Description |
53
- |--------|-------------|
54
- |`makeItRain(currency, separator)` | Initializes the formatter once. Currency = any ISO currency code, separator = `,` or `.` |
55
- | `makeItPretty(amount)` | Takes a number and makes it visually acceptable.|
56
-
57
61
  ## 🏆 Contributing
58
62
  Want to contribute? Cool. Fork it, break it, fix it, and submit a PR.
59
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-it-rain",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Because who formats money manually like a peasant?",
5
5
  "main": "index.js",
6
6
  "bin": {