UNPKG

@lemoncode/fonk-nif-validator

Version:

This is a [fonk](https://github.com/Lemoncode/fonk) microlibrary that brings validation capabilities to validate if a field of a form is a valid NIF (DNI, NIE and/or CIF)

92 lines (91 loc) 2.76 kB
{ "name": "@lemoncode/fonk-nif-validator", "version": "1.0.1", "description": "This is a [fonk](https://github.com/Lemoncode/fonk) microlibrary that brings validation capabilities to validate if a field of a form is a valid NIF (DNI, NIE and/or CIF)", "main": "dist/@lemoncode/fonk-nif-validator.cjs.js", "module": "dist/@lemoncode/fonk-nif-validator.esm.js", "typings": "typings/index.d.ts", "files": [ "dist", "typings" ], "scripts": { "build": "npm run clean && rollup --config", "clean": "rimraf dist .rpt2_cache package-lock.json", "validate": "npm run lint && npm run build && npm run test && npm run test:size", "lint": "eslint src --ext .ts ", "lint:fix": "npm run lint -- --fix", "test": "jest -c ./config/test/jest.json --verbose", "test:watch": "jest -c ./config/test/jest.json --verbose --watchAll -i", "test:size": "bundlesize", "deploy": "npm run validate && np", "deploy:beta": "npm run validate && np --tag=beta --any-branch" }, "bundlesize": [ { "path": "./dist/**/*.js", "maxSize": "3kB" } ], "repository": { "type": "git", "url": "git+https://github.com/Lemoncode/fonk-nif-validator.git" }, "keywords": [ "nif", "validator", "fonk", "form validation", "validate", "sync validation" ], "author": "Lemoncode", "license": "MIT", "bugs": { "url": "https://github.com/Lemoncode/fonk-nif-validator/issues" }, "homepage": "https://github.com/Lemoncode/fonk-nif-validator#readme", "peerDependencies": { "@lemoncode/fonk": "latest" }, "devDependencies": { "@babel/cli": "^7.5.5", "@babel/core": "^7.5.5", "@babel/preset-env": "^7.5.5", "@lemoncode/fonk": "latest", "@types/jest": "^24.0.18", "@typescript-eslint/eslint-plugin": "^2.0.0", "@typescript-eslint/parser": "^2.0.0", "bundlesize": "0.18.0", "eslint": "^6.2.1", "eslint-config-prettier": "^6.1.0", "eslint-plugin-prettier": "^3.1.0", "husky": "^3.0.4", "jest": "^24.9.0", "lint-staged": "^9.2.3", "np": "^5.0.3", "prettier": "^1.18.2", "pretty-quick": "^1.11.1", "rimraf": "^3.0.0", "rollup": "^1.20.0", "rollup-plugin-babel": "^4.3.3", "rollup-plugin-commonjs": "^10.0.2", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-terser": "^5.1.1", "rollup-plugin-typescript2": "^0.22.1", "ts-jest": "^24.0.2", "typescript": "^3.5.3" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "src/**/*.{ts,tsx}": [ "npm run lint:fix", "pretty-quick — staged", "git add" ] } }