@nexora-libs/validation-libs 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 +13 -0
- package/package.json +11 -8
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# How to install using npm
|
|
2
|
+
|
|
3
|
+
```sh
|
|
4
|
+
npm i --save @nexora-libs/validation-libs
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
## How to use
|
|
8
|
+
```sh
|
|
9
|
+
import { isCPF, isCNPJ } from './dist/index.bundle.js'
|
|
10
|
+
|
|
11
|
+
console.log('isCPF: ', isCPF('120.591.292-49'));
|
|
12
|
+
console.log('isCNPJ: ', isCNPJ('120.591.292-49'));
|
|
13
|
+
```
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexora-libs/validation-libs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.bundle.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build-dev": "webpack --config config/webpack.dev.config.js",
|
|
@@ -19,13 +19,16 @@
|
|
|
19
19
|
"v:minor": "npm version minor",
|
|
20
20
|
"v:major": "npm version major",
|
|
21
21
|
"v:dep": "npm publish --access public",
|
|
22
|
-
"v:patch:full": "npm run test && npm run build-prod && npm run v:patch",
|
|
23
|
-
"v:minor:full": "npm run test && npm run build-prod && npm run v:minor",
|
|
24
|
-
"v:major:full": "npm run test && npm run build-prod && npm run v:major"
|
|
25
|
-
},
|
|
26
|
-
"publishConfig": {
|
|
27
|
-
"access": "public"
|
|
22
|
+
"v:patch:full": "npm run test && npm run build-prod && npm run v:patch && npm run v:dep",
|
|
23
|
+
"v:minor:full": "npm run test && npm run build-prod && npm run v:minor && npm run v:dep",
|
|
24
|
+
"v:major:full": "npm run test && npm run build-prod && npm run v:major && npm run v:dep"
|
|
28
25
|
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"CPF",
|
|
28
|
+
"CNPJ",
|
|
29
|
+
"Validações"
|
|
30
|
+
],
|
|
31
|
+
"license": "ISC",
|
|
29
32
|
"lint-staged": {
|
|
30
33
|
"**/*.js": "npm run pre-commit"
|
|
31
34
|
},
|