{"_id":"@codedreams/validations","_rev":"1-21c933a083fcaa31c6c6d794a797fc69","name":"@codedreams/validations","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@codedreams/validations","version":"0.0.1","description":"Welcome to the Code Dreams form `validations` package here you will find out all the helpers that we use on our projects","author":{"name":"Code Dreams","email":"contato@codedreams.com.br"},"repository":{"type":"git","url":"git+https://github.com/acodedreams/validations.git"},"keywords":["codedreams"],"license":"MIT","private":false,"main":"dist/index.js","module":"dist/index.es.js","types":"dist/index.d.ts","engines":{"node":">=10","npm":">=6"},"scripts":{"test":"jest","test:watch":"react-scripts test --env=jsdom","build":"rm -rf dist && rollup -c","start":"rollup -c -w","prepare":"npm run build","pretty":"prettier --config ./.prettierrc.js --write \"src/**/*.{js,jsx,ts,tsx,json}\"","lint":"tsc && eslint '*/**/*.{ts, tsx}' --fix"},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"lint-staged"}},"lint-staged":{"**/*.ts?(x)":["yarn pretty","yarn lint","yarn test","git add ."]},"peerDependencies":{"@fnando/cnpj":"^1.0.2","@fnando/cpf":"^1.0.2","@codedreams/helpers":"^0.0.1","react":"^16.14.0"},"devDependencies":{"@babel/core":"^7.12.10","@babel/runtime":"^7.12.5","@fnando/cnpj":"^1.0.2","@fnando/cpf":"^1.0.2","@codedreams/helpers":"^0.0.1","@testing-library/react-hooks":"^3.7.0","@types/jest":"^26.0.19","@types/react":"^16.9.56","@typescript-eslint/eslint-plugin":"^4.11.1","@typescript-eslint/parser":"^4.11.1","cross-env":"^7.0.3","eslint":"^7.16.0","eslint-config-prettier":"^7.1.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.3.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-sonarjs":"^0.5.0","eslint-plugin-typescript":"^0.14.0","gh-pages":"^3.1.0","husky":"^4.3.6","lint-staged":"^10.5.3","prettier":"^2.2.1","react":"^17.0.1","react-scripts":"^4.0.1","rollup":"^2.35.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-typescript2":"^0.29.0","rollup-plugin-url":"^3.0.1","ts-jest":"^26.5.1","typescript":"^4.1.3"},"gitHead":"e43ef039da1b8df7a1d059acfde3cd03da9d4eaa","bugs":{"url":"https://github.com/acodedreams/validations/issues"},"homepage":"https://github.com/acodedreams/validations#readme","_id":"@codedreams/validations@0.0.1","_nodeVersion":"14.15.4","_npmVersion":"7.5.2","dist":{"integrity":"sha512-LKDlNJWB1AKjgq8sBh38mgeLzaegRs6KktcxIheTP+Mpv3ZMhX0/jAlF+sNQ30CCwYHfOD1KT2hZQei2PPUdLQ==","shasum":"88d4805a085cd91057fa0256f0e0694dfcfcf95d","tarball":"https://registry.npmjs.org/@codedreams/validations/-/validations-0.0.1.tgz","fileCount":68,"unpackedSize":1114020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOutkCRA9TVsSAnZWagAAimIP/iBJGEPQtzJdZ9QQnLfl\nm/TgtKBDt/VuM5gvLFmJIfVWgvikTH4TL3ym8PfmfNNBkvwkBeA6hnMaTJhn\nfJ6wfam0NFUJyjR+T0xAGy5yVrZU4VzfRVbmnEUPRPUq+66P1ZCQTaxHY8Q6\nhE7axkrm4bBWVpryZbcMenffkib67BtdP9AhgbeDQBoTUORJ/1zibZW3ULYG\ngvwSGiEVKd0qVrhvXGpnYCxej7Lh3mBtpIBaQHr0dlstxSfY+01fj0lL3Z1X\n2XhgbnP+XwOpH86Iu8mEznGi9J41tte6OsTssQyFd17oazUa0QwOUyBGYF6C\nqRqMrsn/Nm/yN8dQYF61/s1sLjZXWGNc/k5mQ3w/qjZsUdpzpph/8GK9tuNq\nPBtglvxOK+h44yqLZaBstNZBVgco8KJjr9o+BwtXXYcFm24zXB7yIcxLmvVH\nXVCVcHr10O1oDdFZMRnrLUP8s/HVbxkLqNaadGY+3HW08aaa1cdwRwNUbCwU\ny76DkPeqxI/yD1IhT0j67INH74Ihwl+othPDnpr6JGNDp+8XiY1sKqXT+beE\nDAt9pNv0k8EggxQiw/ncEMlYnSJ3jBH2KALqXR46vX5y6Lh/5uP/YX/Pb75G\nYV/AI6Q6IDW4PdYHMNaPHJvib/hDRjIb7cs/aRr5FPZR3gPbbwO7Zx9X192n\nkLyj\r\n=Vrom\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhS71PgJMOnuLsPmbkELjyRU01TPh/vjIW+xLjHzPlaAiBytpnR8nbZMV88haPv0xentz2Rdvc7XBT1g6ga/dQakw=="}]},"_npmUser":{"name":"eduardoffelipe","email":"eduardoftoledo70@gmail.com"},"directories":{},"maintainers":[{"name":"eduardoffelipe","email":"eduardoftoledo70@gmail.com"},{"name":"acodedreams","email":"acodedreams@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validations_0.0.1_1614474083780_0.2895454791234142"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-28T01:01:23.551Z","0.0.1":"2021-02-28T01:01:23.998Z","modified":"2022-04-05T00:02:03.700Z"},"maintainers":[{"name":"eduardoffelipe","email":"eduardoftoledo70@gmail.com"},{"name":"acodedreams","email":"acodedreams@gmail.com"}],"description":"Welcome to the Code Dreams form `validations` package here you will find out all the helpers that we use on our projects","homepage":"https://github.com/acodedreams/validations#readme","keywords":["codedreams"],"repository":{"type":"git","url":"git+https://github.com/acodedreams/validations.git"},"author":{"name":"Code Dreams","email":"contato@codedreams.com.br"},"bugs":{"url":"https://github.com/acodedreams/validations/issues"},"license":"MIT","readme":"# Welcome to Code Dreams `Validations`\n\nWelcome to the Code Dreams form `validations` package here you will find out all the helpers that we use on our projects\n\n# Whats the idea of this repository\n\nEasily apply validations to forms, specially using [yup](https://github.com/jquense/yup).\n\n# How can i use the library?\n\nJust add the library to your project and import it!\n\n1. Depend on it:\n\n```\nyarn add @codedreams/validations\n```\n\n3. Import:\n\n```\nimport { isValidFullName } from '@codedreams/validations'\n\n```\n\n# Validations\n\n| Name                                                     | Returns         | Arguments         |\n| -------------------------------------------------------- | --------------- | ----------------- |\n| [`isValidFullName`](./docs/isValidFullName.md)           | truthy OR falsy | (string)          |\n| [`isValidCep`](./docs/isValidCep.md)                     | truthy OR falsy | (string)          |\n| [`isValidCurrency`](./docs/isValidCurrency.md)           | truthy OR falsy | (string)          |\n| [`isValidDDD`](./docs/isValidDDD.md)                     | truthy OR falsy | (string)          |\n| [`isValidEmail`](./docs/isValidEmail.md)                 | truthy OR falsy | (string)          |\n| [`isValidCpf`](./docs/isValidCpf.md)                     | truthy OR falsy | (string)          |\n| [`isValidCnpj`](./docs/isValidCnpj.md)                   | truthy OR falsy | (string)          |\n| [`isValidPassword`](./docs/isValidPassword.md)           | truthy OR falsy | (string)          |\n| [`isValidDocument`](./docs/isValidDocument.md)           | truthy OR falsy | (string)          |\n| [`isValidPin`](./docs/isValidPin.md)                     | truthy OR falsy | (string, number?) |\n| [`isValidPositiveValue`](./docs/isValidPositiveValue.md) | truthy OR falsy | (string)          |\n","readmeFilename":"README.md"}