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.
Files changed (2) hide show
  1. package/README.md +7 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
 
2
2
  # 💸 pix-utils-js
3
3
 
4
+ ![](https://img.shields.io/npm/dw/pix-utils-js)
5
+ ![](https://img.shields.io/npm/v/pix-utils-js)
6
+ ![](https://img.shields.io/github/contributors/paulohenriquesn/pix-utils-js)
7
+ ![](https://img.shields.io/npm/l/pix-utils-js)
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: string }` |
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: string }` |
58
+ | `normalize` | `input: {pix: string}` | Pix `{ pix: string, type: 'email' \| 'cpf' \| 'cnpj' \| 'random' \|'phone' }` |
54
59
 
55
60
 
56
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pix-utils-js",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "author": "Paulo Henrique",
5
5
  "description": "Um pacote para fornecer utilidades e validações para chaves pix.",
6
6
  "main": "index.js",