{"_id":"@edyspider/validate-nif","_rev":"7-8f7543b064d2c9093981f1caeac7d7ff","name":"@edyspider/validate-nif","dist-tags":{"latest":"1.7.8"},"versions":{"1.0.0":{"name":"@edyspider/validate-nif","version":"1.0.0","keywords":["NIF","VAT","Validate","Portugal"],"author":{"name":"EdySpider"},"license":"MIT","_id":"@edyspider/validate-nif@1.0.0","maintainers":[{"name":"edyspider","email":"eder.silva84@gmail.com"}],"homepage":"https://github.com/edyspider/validate-nif#readme","bugs":{"url":"https://github.com/edyspider/validate-nif/issues"},"dist":{"shasum":"e3c3a8ea1ad6015761b88a72e735bafa871cad9f","tarball":"https://registry.npmjs.org/@edyspider/validate-nif/-/validate-nif-1.0.0.tgz","fileCount":7,"integrity":"sha512-dlIcsTLVIfbzfGpL95O1bHi1mmaCliOz6fIGxGSxd/k8gJWd49Fn9vbZj3PZcbFYTCH3dbn1TQIFWZeVXFcMMg==","signatures":[{"sig":"MEUCIFOnOMbjXxVXcgSZwq3xiviOQdsTeXAK47h7LPAPyzNxAiEAhwH8Mrmy5a/qHl6pwo6CtMyCWUwMgfgU5yRkrnCy5bk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5468},"main":"index.js","gitHead":"96a50743d76b70451527065fe53be5f7f567b34d","scripts":{"test":"jest"},"_npmUser":{"name":"edyspider","email":"eder.silva84@gmail.com"},"repository":{"url":"git+https://github.com/edyspider/validate-nif.git","type":"git"},"_npmVersion":"8.3.0","description":"A package to validate Portuguese fiscal identification numbers (NIF)","directories":{},"_nodeVersion":"20.8.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/validate-nif_1.0.0_1716331886704_0.42258104679844744","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@edyspider/validate-nif","version":"1.0.1","keywords":["NIF","VAT","Validate","Portugal"],"author":{"name":"EdySpider"},"license":"MIT","_id":"@edyspider/validate-nif@1.0.1","maintainers":[{"name":"edyspider","email":"eder.silva84@gmail.com"}],"homepage":"https://github.com/edyspider/validate-nif#readme","bugs":{"url":"https://github.com/edyspider/validate-nif/issues"},"dist":{"shasum":"8e8105a7402ced60524f2b68da2e4b03b290b1be","tarball":"https://registry.npmjs.org/@edyspider/validate-nif/-/validate-nif-1.0.1.tgz","fileCount":7,"integrity":"sha512-+b+M8lCcIylTyYM9Ctx4++ZcxvyUeodkmh8ECSnw8OHsGdSsyBvuCAzvgGUD4DrIaWXSVYAKqr7sU8ACmx1SpQ==","signatures":[{"sig":"MEYCIQDvlP7gvBVs5x8mmfPvXzmY3ve+NCo03vasBacr5mlf+wIhAN8Ado4iqwSYUlZe8JWlzrTNMj3F0Njg7FHN6qfskQ7O","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5470},"main":"index.js","gitHead":"255b9a023657c60bfe9d07b0ba175d922d18883f","scripts":{"test":"jest"},"_npmUser":{"name":"edyspider","email":"eder.silva84@gmail.com"},"repository":{"url":"git+https://github.com/edyspider/validate-nif.git","type":"git"},"_npmVersion":"8.3.0","description":"A package to validate Portuguese fiscal identification numbers (NIF)","directories":{},"_nodeVersion":"20.8.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/validate-nif_1.0.1_1716332995139_0.9033538405378525","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@edyspider/validate-nif","version":"1.0.2","keywords":["NIF","VAT","Validate","Portugal"],"author":{"name":"EdySpider"},"license":"MIT","_id":"@edyspider/validate-nif@1.0.2","maintainers":[{"name":"edyspider","email":"eder.silva84@gmail.com"}],"homepage":"https://github.com/edyspider/validate-nif#readme","bugs":{"url":"https://github.com/edyspider/validate-nif/issues"},"dist":{"shasum":"f6f98be34c50e74714079f660389741b06de5056","tarball":"https://registry.npmjs.org/@edyspider/validate-nif/-/validate-nif-1.0.2.tgz","fileCount":9,"integrity":"sha512-uoj3NRX0Igo723X7B3aV7CWRsTFpCgTkk6/B5+gOS339PYhT3jnRbqfjTxtouYEXYATsYTC5MUdAw6ZIy+/3ng==","signatures":[{"sig":"MEQCIA7xFTQUji23zXQeKQIpAos8oAyKGh5WHCSYHCGGnUEWAiBzM47bYWgDTlI/jIxFCbUSPmCP5KT5Ax3LnBgNppahJA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6212},"main":"index.js","gitHead":"ee601ad14a5e7ff976eb89484cb81aebcfb2d525","scripts":{"test":"jest"},"_npmUser":{"name":"edyspider","email":"eder.silva84@gmail.com"},"repository":{"url":"git+https://github.com/edyspider/validate-nif.git","type":"git"},"_npmVersion":"8.3.0","description":"A package to validate Portuguese fiscal identification numbers (NIF)","directories":{},"_nodeVersion":"20.8.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/validate-nif_1.0.2_1716378848740_0.13239523370003625","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@edyspider/validate-nif","version":"1.0.3","keywords":["NIF","VAT","Validate","Portugal"],"author":{"name":"EdySpider"},"license":"MIT","_id":"@edyspider/validate-nif@1.0.3","maintainers":[{"name":"edyspider","email":"eder.silva84@gmail.com"}],"homepage":"https://github.com/edyspider/validate-nif#readme","bugs":{"url":"https://github.com/edyspider/validate-nif/issues"},"dist":{"shasum":"8e2fc9f11aecd6027a59aef3cfdc30736bc85fd6","tarball":"https://registry.npmjs.org/@edyspider/validate-nif/-/validate-nif-1.0.3.tgz","fileCount":12,"integrity":"sha512-iTZ25+IdK+D0NrzjD0uR+i1TylaR3E6E3WC49HrnrUhnZ3Xto83Hy69Le1cURmMgpFbSI5KMNXB8aM1BYnSbeA==","signatures":[{"sig":"MEYCIQCywNI83n7S2RUtUjT+8e8Xqo/zXCPuzWgj7Cxnbn4kkAIhAPWc1KNdu0Uuine7ocN0PEUpoYGsp7XHgPHR8DxptH5A","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7804},"main":"index.js","gitHead":"6ec864ee5e5b41c2470f02d67e85e992b4f26848","scripts":{"lint":"eslint.js","test":"jest"},"_npmUser":{"name":"edyspider","email":"eder.silva84@gmail.com"},"repository":{"url":"git+https://github.com/edyspider/validate-nif.git","type":"git"},"_npmVersion":"8.3.0","description":"A package to validate Portuguese fiscal identification numbers (NIF)","directories":{},"_nodeVersion":"20.8.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/validate-nif_1.0.3_1716461509021_0.274625786052906","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@edyspider/validate-nif","version":"1.0.4","keywords":["NIF","VAT","Validate","Portugal"],"author":{"name":"EdySpider"},"license":"MIT","_id":"@edyspider/validate-nif@1.0.4","maintainers":[{"name":"edyspider","email":"eder.silva84@gmail.com"}],"homepage":"https://github.com/edyspider/validate-nif#readme","bugs":{"url":"https://github.com/edyspider/validate-nif/issues"},"dist":{"shasum":"3bd5b218b6c7d095cb5d5bde948cafe38ff84a7e","tarball":"https://registry.npmjs.org/@edyspider/validate-nif/-/validate-nif-1.0.4.tgz","fileCount":5,"integrity":"sha512-RlSBEIrzs0a6fvGe1OmfyR/VYrPjQtfI2EE/TArbpDUwR5CpKQI7+LH7hSZAFJj3qfvL5794nLzrjVoerNlMnA==","signatures":[{"sig":"MEUCIGjJA25A5kwY7hnuwKMWKQew1iyLmLRo51eBRusvsdp0AiEAnMr4AKK6SPGKtCyHRjQfdNhQ0Rh3G+CQjvW5wLoeLuw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4299},"main":"dist/bundle.js","gitHead":"b64aafbff7f9d75e4a5ff287a3abe2ca87ee9111","scripts":{"lint":"eslint src/**/*.js test/**/*.js","test":"jest","build":"webpack --mode production","coverage":"jest --coverage"},"_npmUser":{"name":"edyspider","email":"eder.silva84@gmail.com"},"repository":{"url":"git+https://github.com/edyspider/validate-nif.git","type":"git"},"_npmVersion":"8.3.0","description":"A package to validate Portuguese fiscal identification numbers (NIF)","directories":{},"_nodeVersion":"20.8.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.3.0","globals":"^15.3.0","webpack":"^5.91.0","@eslint/js":"^9.3.0","@babel/core":"^7.24.5","webpack-cli":"^5.1.4","babel-loader":"^9.1.3","@babel/preset-env":"^7.24.5"},"_npmOperationalInternal":{"tmp":"tmp/validate-nif_1.0.4_1716477320921_0.38289814937747546","host":"s3://npm-registry-packages"}},"1.7.2":{"name":"@edyspider/validate-nif","version":"1.7.2","keywords":["NIF","VAT","Validate","Portugal"],"author":{"name":"EdySpider"},"license":"MIT","_id":"@edyspider/validate-nif@1.7.2","maintainers":[{"name":"edyspider","email":"eder.silva84@gmail.com"}],"homepage":"https://github.com/edyspider/validate-nif#readme","bugs":{"url":"https://github.com/edyspider/validate-nif/issues"},"dist":{"shasum":"2d9fcb87ebb34be8675d89c08b45453aa2fdc537","tarball":"https://registry.npmjs.org/@edyspider/validate-nif/-/validate-nif-1.7.2.tgz","fileCount":5,"integrity":"sha512-Hxm0dBNatGUvK6sQhiEH5vlMeYqQ8doduacAWo2F04KGop+WEPKLJs4PUJoSBHs8en6gSw4QHejk22Nv23n16g==","signatures":[{"sig":"MEYCIQCKlkK9+dwhPibNy8XzFCMKPMMtU81fbBQ++Pt/iyfHYwIhAMNYQs+1rD7RGWd+zkKCnu4SAC78yY3IhCx3UXkxTZyg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4577},"main":"dist/bundle.js","gitHead":"800c4ab94fd647710761ef41bcc4002305feef21","scripts":{"lint":"eslint src/**/*.js test/**/*.js","test":"jest","build":"webpack --mode production","coverage":"jest --coverage"},"_npmUser":{"name":"edyspider","email":"eder.silva84@gmail.com"},"repository":{"url":"git+https://github.com/edyspider/validate-nif.git","type":"git"},"_npmVersion":"8.3.0","description":"A package to validate Portuguese fiscal identification numbers (NIF)","directories":{},"_nodeVersion":"20.8.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.3.0","globals":"^15.3.0","webpack":"^5.91.0","@eslint/js":"^9.3.0","@babel/core":"^7.24.5","webpack-cli":"^5.1.4","babel-loader":"^9.1.3","@babel/preset-env":"^7.24.5"},"_npmOperationalInternal":{"tmp":"tmp/validate-nif_1.7.2_1717666145478_0.5115768574507638","host":"s3://npm-registry-packages"}},"1.7.3":{"name":"@edyspider/validate-nif","version":"1.7.3","keywords":["NIF","VAT","Validate","Portugal"],"author":{"name":"EdySpider"},"license":"MIT","_id":"@edyspider/validate-nif@1.7.3","maintainers":[{"name":"edyspider","email":"eder.silva84@gmail.com"}],"homepage":"https://github.com/edyspider/validate-nif#readme","bugs":{"url":"https://github.com/edyspider/validate-nif/issues"},"dist":{"shasum":"bae3829cc87c5d8c486a8e4a70b1d7688f53b80b","tarball":"https://registry.npmjs.org/@edyspider/validate-nif/-/validate-nif-1.7.3.tgz","fileCount":5,"integrity":"sha512-31E0OjzQoPDf/J1glDlEZ5u/tCs2yAgSGkbMBCh3qSJZAWilJR2r/DSGbkIDbdz9UvdfsmQrNH/PQGkgHceZ3A==","signatures":[{"sig":"MEUCIGQrJxmRHe61Yx6jJZpdOm62H/ZDqPFrAv+0a3HCfDH9AiEAr5kc9aUfmMh6RCzQHVstrZPMxDR3bAK7YChgntOvxS0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4858},"main":"dist/bundle.js","gitHead":"87589aa3a2bc67f5d06e1b26b9d84534aa3307c5","scripts":{"lint":"eslint src/**/*.js test/**/*.js","test":"jest","build":"webpack --mode production","coverage":"jest --coverage"},"_npmUser":{"name":"edyspider","email":"eder.silva84@gmail.com"},"repository":{"url":"git+https://github.com/edyspider/validate-nif.git","type":"git"},"_npmVersion":"8.3.0","description":"A package to validate Portuguese fiscal identification numbers (NIF)","directories":{},"_nodeVersion":"20.8.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.3.0","globals":"^15.3.0","webpack":"^5.91.0","@eslint/js":"^9.3.0","@babel/core":"^7.24.5","webpack-cli":"^5.1.4","babel-loader":"^9.1.3","@babel/preset-env":"^7.24.5"},"_npmOperationalInternal":{"tmp":"tmp/validate-nif_1.7.3_1717666595453_0.4048545343665919","host":"s3://npm-registry-packages"}},"1.7.8":{"name":"@edyspider/validate-nif","version":"1.7.8","description":"A package to validate Portuguese fiscal identification numbers (NIF)","main":"dist/bundle.js","types":"src/index.d.ts","scripts":{"lint":"eslint src/**/*.js test/**/*.js","build":"webpack --mode production","test":"jest","coverage":"jest --coverage"},"repository":{"type":"git","url":"git+https://github.com/edyspider/validate-nif.git"},"keywords":["NIF","VAT","Validate","Portugal"],"author":{"name":"EdySpider"},"license":"MIT","bugs":{"url":"https://github.com/edyspider/validate-nif/issues"},"homepage":"https://github.com/edyspider/validate-nif#readme","devDependencies":{"@babel/core":"^7.24.5","@babel/preset-env":"^7.24.5","@eslint/js":"^9.3.0","babel-loader":"^9.1.3","eslint":"^9.3.0","globals":"^15.3.0","jest":"^29.7.0","webpack":"^5.91.0","webpack-cli":"^5.1.4"},"gitHead":"2913deb7cd7b9676a8a96b92cc6d858ed3de6656","_id":"@edyspider/validate-nif@1.7.8","_nodeVersion":"20.8.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-/3gLHFy+5tXuOMKxqLsdqu/O2Apqd4TwfRziu+qiH9i1zzKeiJAPw8KRnp5zMWlzNVOPMWnaXSB0hIV5lM4/gQ==","shasum":"cb367b2bea67bde0dd4d42df05bd9183ef0f9360","tarball":"https://registry.npmjs.org/@edyspider/validate-nif/-/validate-nif-1.7.8.tgz","fileCount":5,"unpackedSize":5542,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH99tCXX/whTn3p2i6IddItB3oBBLSBsW0bEc63tHIGeAiB5dLxgq3VgpzHy8muK1t4/z9FyndskoBH2QtkoOx/GJA=="}]},"_npmUser":{"name":"edyspider","email":"eder.silva84@gmail.com"},"directories":{},"maintainers":[{"name":"edyspider","email":"eder.silva84@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-nif_1.7.8_1726587287674_0.9319439515016457"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-21T22:51:26.590Z","modified":"2024-09-17T15:34:47.966Z","1.0.0":"2024-05-21T22:51:26.886Z","1.0.1":"2024-05-21T23:09:55.276Z","1.0.2":"2024-05-22T11:54:08.880Z","1.0.3":"2024-05-23T10:51:49.183Z","1.0.4":"2024-05-23T15:15:21.079Z","1.7.2":"2024-06-06T09:29:05.646Z","1.7.3":"2024-06-06T09:36:35.743Z","1.7.8":"2024-09-17T15:34:47.813Z"},"bugs":{"url":"https://github.com/edyspider/validate-nif/issues"},"author":{"name":"EdySpider"},"license":"MIT","homepage":"https://github.com/edyspider/validate-nif#readme","keywords":["NIF","VAT","Validate","Portugal"],"repository":{"type":"git","url":"git+https://github.com/edyspider/validate-nif.git"},"description":"A package to validate Portuguese fiscal identification numbers (NIF)","maintainers":[{"name":"edyspider","email":"eder.silva84@gmail.com"}],"readme":"# Validate-NIF\r\n\r\nA simple npm package to validate Portuguese fiscal identification numbers (NIF).\r\n\r\n---\r\n\r\n## Installation\r\n\r\n```sh\r\nnpm i @edyspider/validate-nif\r\n```\r\n\r\n## Usage\r\n\r\n### Javascript\r\n\r\n```js\r\nconst { validateNIF, randomNIF } = require('@edyspider/validate-nif');\r\n\r\nconst validNIF = '123456789';\r\nconst invalidNIF = '999999999';\r\nconst randNIF = randomNIF();\r\n\r\nconsole.log(`Is ${validNIF} a valid NIF?`, validateNIF(validNIF));\r\nconsole.log(`Is ${invalidNIF} a valid NIF?`, validateNIF(invalidNIF));\r\nconsole.log(`Generated random NIF: ${randNIF}`);\r\nconsole.log(`Is generated NIF valid?`, validateNIF(randNIF));\r\n```\r\n\r\n```sh\r\nIs 123456789 a valid NIF? true\r\nIs 999999999 a valid NIF? false\r\nGenerated random NIF: ?????????\r\nIs generated NIF valid? true\r\n```\r\n\r\n### Typescript\r\n\r\n```ts\r\nimport { validateNIF, randomNIF } from '@edyspider/validate-nif';\r\n\r\nconst isValidNIF = validateNIF('123456789');\r\nconst isInvalidNIF = validateNIF('999999999');\r\nconst newRandNIF = randomNIF();\r\n\r\nconsole.log('NIF is valid:', isValidNIF);\r\nconsole.log('NIF is invalid:', isInvalidNIF);\r\nconsole.log('New random NIF:', newRandNIF);\r\n```\r\n\r\n```sh\r\nIs 123456789 a valid NIF? true\r\nIs 999999999 a valid NIF? false\r\nNew random NIF: ?????????\r\n```\r\n\r\n## Known Issues\r\n\r\n* [**Issues**](https://github.com/edyspider/validate-nif/issues)\r\n\r\n## Authors\r\n\r\n* [**EdySpider**](https://github.com/edyspider/)\r\n\r\n## License\r\n\r\n* **[MIT license](https://github.com/edyspider//validate-nif/blob/master/LICENSE)**\r\n* Copyright 2024 &copy; [EdySpider](https://github.com/edyspider/)\r\n\r\n","readmeFilename":"README.md"}