{"_id":"4devs","_rev":"10-13892119f99d21c2e1d8da85f752bf67","name":"4devs","dist-tags":{"latest":"1.5.1"},"versions":{"1.4.0":{"name":"4devs","version":"1.4.0","keywords":["validate","validar","generate","gerar","CPF","document","documento","Certidões de Nascimento","birth certificates","CNH","Bank account","Currículo","Resume","PIS/PASEP","Veículos","vehicles","CNPJ","CEP","RG","Cartão de Crédito","Credit card","Senha","Password"],"author":{"name":"Theryston Santos","email":"funktodo2@gmail.com"},"license":"MIT","_id":"4devs@1.4.0","maintainers":[{"name":"theryston","email":"funktodo2@gmail.com"}],"homepage":"https://github.com/Theryston/4devs#readme","bugs":{"url":"https://github.com/Theryston/4devs/issues"},"dist":{"shasum":"76d07bf7dd581bed723be4d2c1e5c05ab0d95b15","tarball":"https://registry.npmjs.org/4devs/-/4devs-1.4.0.tgz","fileCount":39,"integrity":"sha512-5wtyLae7z26bk5oRTbyVrRoosxU88MXeTm3OMfvg6mhuR4cxjsOsLxIili+5/FfqL2ql/kqMoLPzWKL9x3qVOQ==","signatures":[{"sig":"MEUCIFI9faYDe2llDzkjS9bP9miQdZ/+QVoHi/RSMJG4lCZJAiEA554Oxhu/MyCVXkifI86T92fTXw24mv3s7tEEYTzTg7o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22002},"main":"dist/index.js","types":"dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"1023d2a26bd9414b44de8203ab8a5d876ec3e80e","private":false,"scripts":{"test":"jest","build":"tsc","example":"node examples/index.js","release":"yarn semantic-release"},"_npmUser":{"name":"theryston","email":"funktodo2@gmail.com"},"repository":{"url":"git+https://github.com/Theryston/4devs.git","type":"git"},"_npmVersion":"8.5.5","description":"Validate and generate various data 🚀✅","directories":{},"_nodeVersion":"16.20.2","dependencies":{"axios":"^0.26.1","form-data":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","husky":"^7.0.4","pinst":"^3.0.0","eslint":"7.32.0","git-cz":"^4.8.0","ts-jest":"^27.1.3","ts-node":"^10.7.0","commitizen":"^4.2.4","typescript":"^4.6.2","@types/jest":"^27.4.1","tsconfig-paths":"^3.14.0","@commitlint/cli":"^16.2.3","@types/puppeteer":"^5.4.5","semantic-release":"^19.0.2","@types/superagent":"^4.1.15","@semantic-release/npm":"^9.0.1","@semantic-release/github":"^8.0.2","cz-conventional-changelog":"3.3.0","eslint-config-airbnb-base":"^15.0.0","@commitlint/config-conventional":"^16.2.1","@typescript-eslint/eslint-plugin":"^5.16.0","@semantic-release/release-notes-generator":"^10.0.3"},"_npmOperationalInternal":{"tmp":"tmp/4devs_1.4.0_1731499836588_0.5226720838723948","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"4devs","version":"1.5.0","keywords":["validate","validar","generate","gerar","CPF","document","documento","Certidões de Nascimento","birth certificates","CNH","Bank account","Currículo","Resume","PIS/PASEP","Veículos","vehicles","CNPJ","CEP","RG","Cartão de Crédito","Credit card","Senha","Password"],"author":{"name":"Theryston Santos","email":"funktodo2@gmail.com"},"license":"MIT","_id":"4devs@1.5.0","maintainers":[{"name":"theryston","email":"funktodo2@gmail.com"}],"homepage":"https://github.com/Theryston/4devs#readme","bugs":{"url":"https://github.com/Theryston/4devs/issues"},"dist":{"shasum":"6a0f8775346993352ffd641968045f416e3bd541","tarball":"https://registry.npmjs.org/4devs/-/4devs-1.5.0.tgz","fileCount":39,"integrity":"sha512-XggYFM8LSwi6uGzrqfxrLqL+R+SXTJBcgMhkexky3JjLbcOUgj8cG3C2hiOXykjdjXRP3PRAVaDZ0thdAqr6Zg==","signatures":[{"sig":"MEYCIQCOPiXLqoBZKoos3JFTAC1RZJcdFJjPFQZX6+lXdyaOVwIhAM6Batcn+n7zUYAiMsRtlvephH/Tt1hPE5rUjTLSxkxb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22002},"main":"dist/index.js","types":"dist/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"58f1adcb5a16b21b1615d1b43bd81ffb93232be7","private":false,"scripts":{"test":"jest","build":"tsc","example":"node examples/index.js","release":"yarn semantic-release"},"_npmUser":{"name":"theryston","email":"funktodo2@gmail.com"},"repository":{"url":"git+https://github.com/Theryston/4devs.git","type":"git"},"_npmVersion":"8.5.5","description":"Validate and generate various data 🚀✅","directories":{},"_nodeVersion":"16.20.2","dependencies":{"axios":"^0.26.1","form-data":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","husky":"^7.0.4","pinst":"^3.0.0","eslint":"7.32.0","git-cz":"^4.8.0","ts-jest":"^27.1.3","ts-node":"^10.7.0","commitizen":"^4.2.4","typescript":"^4.6.2","@types/jest":"^27.4.1","tsconfig-paths":"^3.14.0","@commitlint/cli":"^16.2.3","@types/puppeteer":"^5.4.5","semantic-release":"^19.0.2","@types/superagent":"^4.1.15","@semantic-release/npm":"^9.0.1","@semantic-release/github":"^8.0.2","cz-conventional-changelog":"3.3.0","eslint-config-airbnb-base":"^15.0.0","@commitlint/config-conventional":"^16.2.1","@typescript-eslint/eslint-plugin":"^5.16.0","@semantic-release/release-notes-generator":"^10.0.3"},"_npmOperationalInternal":{"tmp":"tmp/4devs_1.5.0_1731499960952_0.33606754956867024","host":"s3://npm-registry-packages"}},"1.5.1":{"name":"4devs","version":"1.5.1","description":"Validate and generate various data 🚀✅","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Theryston/4devs.git"},"author":{"name":"Theryston Santos","email":"devtheryston@gmail.com"},"license":"MIT","private":false,"dependencies":{"axios":"^0.26.1","form-data":"^4.0.0"},"devDependencies":{"@commitlint/cli":"^16.2.3","@commitlint/config-conventional":"^16.2.1","@semantic-release/github":"^8.0.2","@semantic-release/npm":"^9.0.1","@semantic-release/release-notes-generator":"^10.0.3","@types/jest":"^27.4.1","@types/puppeteer":"^5.4.5","@types/superagent":"^4.1.15","@typescript-eslint/eslint-plugin":"^5.16.0","commitizen":"^4.2.4","cz-conventional-changelog":"3.3.0","eslint":"7.32.0","eslint-config-airbnb-base":"^15.0.0","git-cz":"^4.8.0","husky":"^7.0.4","jest":"^27.5.1","pinst":"^3.0.0","semantic-release":"^19.0.2","ts-jest":"^27.1.3","ts-node":"^10.7.0","tsconfig-paths":"^3.14.0","typescript":"^4.6.2"},"scripts":{"test":"jest","build":"tsc","release":"yarn semantic-release","example":"node examples/index.js"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"keywords":["validate","validar","generate","gerar","CPF","document","documento","Certidões de Nascimento","birth certificates","CNH","Bank account","Currículo","Resume","PIS/PASEP","Veículos","vehicles","CNPJ","CEP","RG","Cartão de Crédito","Credit card","Senha","Password"],"gitHead":"c2995d425099ccd62356149cff2ddc1d06d493d3","bugs":{"url":"https://github.com/Theryston/4devs/issues"},"homepage":"https://github.com/Theryston/4devs#readme","_id":"4devs@1.5.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-9pCV458FSXyW1WAK6hzWYFKgJcxQNspB+zzRJQycQa7N+LhDbZh269nyWmwebR+zBQwZ04iKCcIatJ1bmPjVZA==","shasum":"72a303c858a317f69fc338f7802a0e90a4611b5f","tarball":"https://registry.npmjs.org/4devs/-/4devs-1.5.1.tgz","fileCount":39,"unpackedSize":22037,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPTA62LtpZp22Hlr2JvK9UpctQWTNYFzOHm7fAQlr6hAiEAuX2sIY+wVKTtt+xE/YQnv0IRujrmAqIEaXwwf7u1B0U="}]},"_npmUser":{"name":"theryston","email":"funktodo2@gmail.com"},"directories":{},"maintainers":[{"name":"theryston","email":"funktodo2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4devs_1.5.1_1731500640788_0.7237546588735753"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-13T12:10:36.588Z","modified":"2024-11-13T12:24:01.171Z","1.0.0":"2022-03-21T23:52:48.548Z","1.1.0":"2022-03-21T23:56:00.759Z","1.2.1":"2022-03-24T18:06:19.624Z","1.3.0":"2022-03-25T18:14:35.307Z","1.4.0":"2024-11-13T12:10:36.762Z","1.5.0":"2024-11-13T12:12:41.140Z","1.5.1":"2024-11-13T12:24:00.980Z"},"bugs":{"url":"https://github.com/Theryston/4devs/issues"},"author":{"name":"Theryston Santos","email":"devtheryston@gmail.com"},"license":"MIT","homepage":"https://github.com/Theryston/4devs#readme","keywords":["validate","validar","generate","gerar","CPF","document","documento","Certidões de Nascimento","birth certificates","CNH","Bank account","Currículo","Resume","PIS/PASEP","Veículos","vehicles","CNPJ","CEP","RG","Cartão de Crédito","Credit card","Senha","Password"],"repository":{"type":"git","url":"git+https://github.com/Theryston/4devs.git"},"description":"Validate and generate various data 🚀✅","maintainers":[{"name":"theryston","email":"funktodo2@gmail.com"}],"readme":"[<img src=\"https://user-images.githubusercontent.com/72868196/159564161-7a74f05f-c97e-4d11-839e-ab772af687aa.png\" width=\"200px\">](https://www.npmjs.com/package/4devs)\n\n**under development, everything in the documentation is already implemented and working**\n\n# Quick Start\n\nnpm package that generates and validates: Birth Certificate, CNH, Bank Account, CPF, Resume, Nicks, PIS/PASEP, CNPJ, CEP, RG, Voter Title, Credit Card, documents of people, Image and much more...\n\n```ts\nimport { CPF } from '4devs';\n\nconst { cpf } = await CPF.generate(); // 34317074087\n\nawait CPF.validate({ cpf: '999.999.999-99' }); // false\n```\n\n## Installation\n\npnpm\n\n```shell\npnpm add 4devs\n```\n\nyarn\n\n```shell\nyarn add 4devs\n```\n\nnpm\n\n```shell\nnpm install --save 4devs\n```\n\n# Navigation\n\n- [CPF](#cpf)\n- [RG](#rg)\n- [Certificates](#certificates)\n\n# Docs:\n\nhere you can see the documentation of all the features already implemented\n\n## CPF:\n\nCPF is one of the classes that 4devs has, this class is able to generate and validate a cpf based on the services on the pages [https://www.4devs.com.br/gerador_de_cpf](https://www.4devs.com.br/gerador_de_cpf) and [https://www.4devs.com.br/validador_cpf](https://www.4devs.com.br/validador_cpf)\n\n### validate a CPF\n\n```ts\nimport { CPF } from '4devs';\n\nconst { isValid } = await CPF.validate({ cpf: '577.572.660-09' });\n```\n\nparameters:\n\n- `cpf` (required) the CPF you want to validate\n\nreturn:\n\n```ts\n{\n  isValid: boolean;\n}\n```\n\n## RG:\n\nRG is one of the classes that 4devs has, this class is able to generate and validate a rg based on the services on the pages [https://www.4devs.com.br/gerador_de_cpf](https://www.4devs.com.br/gerador_de_rg) and [https://www.4devs.com.br/validador_rg](https://www.4devs.com.br/validador_rg)\n\n### validate a RG\n\n```ts\nimport { RG } from '4devs';\n\nconst { isValid } = await RG.validate({ rg: '30.737.817-2' });\n```\n\nparameters:\n\n- `rg` (required) the RG you want to validate\n\nreturn:\n\n```ts\n{\n  isValid: boolean;\n}\n```\n\n### generate a new RG\n\n```ts\nimport { RG } from '4devs';\n\nconst { rg } = await RG.generate({ isWithDots: true, stateCode: 'BA' });\n```\n\nparameters:\n\n- `isWithDots` (optional) if true the RG will be generated with dots example: 30.737.817-2 if not generated without example: 307378172\n\n- `stateCode` (optional) code of the state where the RG belongs, example: \"BA\" or \"SP\"\n\nreturn:\n\n```ts\n{\n  rg: string;\n}\n```\n\n## Certificates:\n\nCertificates is one of the classes that 4devs has, this class is able to generate and validate a certificates based on the services on the pages [https://www.4devs.com.br/validador_certidoes](https://www.4devs.com.br/validador_certidoes) and [https://www.4devs.com.br/gerador_numero_certidoes](https://www.4devs.com.br/gerador_numero_certidoes)\n\n### validate a Certificates\n\n```ts\nimport { Certificates } from '4devs';\n\nconst { isValid } = await Certificates.validate({\n  certificate: '107211 01 55 2018 1 07592 378 3808990-80',\n});\n```\n\nparameters:\n\n- `certificate` (required) the certificate you want to validate\n\nreturn:\n\n```ts\n{\n  isValid: boolean;\n}\n```\n\n### generate a new Certificate\n\n```ts\nimport { Certificates } from '4devs';\n\nconst { certificate } = await Certificates.generate({\n  isWithDots: true,\n  type: 'BIRTH',\n});\n```\n\nparameters:\n\n- `isWithDots` (optional) if true the certificate will be generated with dots example: 107211 01 55 2018 1 07592 378 3808990-80 if not generated without example: 21931801552017107907909207153815\n\n- `type` (optional) the certificate type, can be: `'BIRTH' | 'WEDDING' | 'RELIGIOUS_MARRIAGE' | 'DEATH'`\n\nreturn:\n\n```ts\n{\n  certificate: string;\n}\n```\n\n## CNH:\n\nCNH is one of the classes that 4devs has, this class is able to generate and validate a CNH based on the services on the pages [https://www.4devs.com.br/validador_cnh](https://www.4devs.com.br/validador_cnh) and [https://www.4devs.com.br/gerador_de_cnh](https://www.4devs.com.br/gerador_de_cnh)\n\n### validate a CNH\n\n```ts\nimport { CNH } from '4devs';\n\nconst { isValid } = await CNH.validate({\n  cnh: '79973493843',\n});\n```\n\nparameters:\n\n- `cnh` (required) the cnh you want to validate\n\nreturn:\n\n```ts\n{\n  isValid: boolean;\n}\n```\n\n### generate a new CNH\n\n```ts\nimport { CNH } from '4devs';\n\nconst { cnh } = await CNH.generate();\n```\n\nreturn:\n\n```ts\n{\n  cnh: string;\n}\n```\n\n# Footer:\n\nThis package is created using the website [https://www.4devs.com.br](https://www.4devs.com.br/). but the site has no responsibility for this content it was made in an open source way and without contacting the site.\n","readmeFilename":"README.md"}