pix-utils-js 1.0.0 → 1.0.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.
- package/README.md +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
# 💸 pix-utils-js
|
|
3
3
|
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
|
|
4
9
|
Uma pequena biblioteca que irá te ajudar a lidar com chaves pix
|
|
5
10
|
|
|
6
11
|
|
|
@@ -26,7 +31,7 @@ Instale pix-utils-js com npm ou yarn
|
|
|
26
31
|
|
|
27
32
|
| Função | Parametro | Retorno |
|
|
28
33
|
| :---------- | :--------- | :---------------------------------- |
|
|
29
|
-
| `identify` | `input: {pix: string}` | Pix `{ pix: string, type:
|
|
34
|
+
| `identify` | `input: {pix: string}` | Pix `{ pix: string, type: 'email' \| 'cpf' \| 'cnpj' \| 'random' \|'phone' }` |
|
|
30
35
|
|
|
31
36
|
#### Validar uma chave pix
|
|
32
37
|
|
|
@@ -50,7 +55,7 @@ Instale pix-utils-js com npm ou yarn
|
|
|
50
55
|
|
|
51
56
|
| Função | Parametro | Retorno |
|
|
52
57
|
| :---------- | :--------- | :---------------------------------- |
|
|
53
|
-
| `normalize` | `input: {pix: string}` | Pix `{ pix: string, type:
|
|
58
|
+
| `normalize` | `input: {pix: string}` | Pix `{ pix: string, type: 'email' \| 'cpf' \| 'cnpj' \| 'random' \|'phone' }` |
|
|
54
59
|
|
|
55
60
|
|
|
56
61
|
|