{"_id":"@emanuel_miron/validate-vat-ssl","_rev":"1-730946d3a34889521be12f8eb8492780","name":"@emanuel_miron/validate-vat-ssl","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"_from":"validate-vat-ssl","_inBundle":false,"_integrity":"sha512-Jao/jFcLgueHWmM0wLvNylqHGiX8xAFuOQxmZmLbjfsZ/pc/Mjh9zxqx38TnFmbDyl4KeHFpjUPKXJBSmfGM5Q==","_location":"/validate-vat-ssl","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"validate-vat-ssl","name":"validate-vat-ssl","escapedName":"validate-vat-ssl","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"_resolved":"https://registry.npmjs.org/validate-vat-ssl/-/validate-vat-ssl-1.0.0.tgz","_shasum":"7a30a47d3a68db20a17d065c3fcec1ef70932878","_spec":"validate-vat-ssl","_where":"/home/emanuel/Desktop/01_Projects/04_VAT EU check","author":{"name":"Emanuel Miron"},"bugs":{"url":"https://github.com/EmanuelMiron/validate-vat-ssl/issues"},"dependencies":{},"deprecated":false,"description":"A Europe VAT number validation lib","devDependencies":{"coffee-script":"1.12.7","expect.js":"0.3.1","mocha":"6.1.4"},"directories":{"lib":"lib"},"homepage":"https://github.com/EmanuelMiron/validate-vat-ssl#readme","keywords":["VAT","VIES","Tax","Number","Validation","node.js"],"license":"MIT","main":"validate-vat-ssl.js","name":"@emanuel_miron/validate-vat-ssl","repository":{"type":"git","url":"git+https://github.com/EmanuelMiron/validate-vat-ssl.git"},"version":"1.0.0","_id":"@emanuel_miron/validate-vat-ssl@1.0.0","_nodeVersion":"12.22.11","_npmVersion":"6.14.16","dist":{"integrity":"sha512-Hk/JH0VXXBYJ6MAnVGqZ3Lv7Hp3L1p2+SsF25wUSHzK0f79Cqv+Yds9yCqOXja9SjDRY4VzBAKXjPCQQMz9UcQ==","shasum":"4162e94acc62fea89fb9506b54254bf372698535","tarball":"https://registry.npmjs.org/@emanuel_miron/validate-vat-ssl/-/validate-vat-ssl-1.0.0.tgz","fileCount":3,"unpackedSize":10605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRobrlhHe6y4yO0TlSSdg1359RIJOJcw+48DrvwGJZ1wIgUXabyCzd61Rqoegl57anT0cvfbTdK9eX54b/s+avlb8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVqj0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrr/g//bAMpuYFS/It81rEej6qoMNUzSQ7hmPwVfytCKTBc/5j84HXT\r\n8Uih1UsJfa+buWcbine4M9kftUzUuUXYzy4T/Lqm5b7m8D1VhN7//eohSRtG\r\nFvnVrXwQkGss9647oBg4MlAhaQyNSySSH/W40JwrL8kzoE0i+gFenSFrGpyN\r\n0kNHrFSBM4DMc9HZXiAl+9nc84waJrplobG43AOccREI8siG/tdggW/e5C/m\r\ngGUYMQwP/c9a+n/wIS04uhY4Iiaajc1yTIvr1qzJ4Abmyn+5H2IFDzeWb6vX\r\nhMI8gzZGEd/nf0XhulvaZZS755yAK+9gOQrucLvhDgf4b9Dxz+iFOqm3OZE+\r\nPHDpdp+0vNp+tVC+B1Rz1BY8DcMcV0Vb9NqlKhChRoKQAtK9umsr3Gm4OXXk\r\n82wj4cxOn0MMEZ2CehYBpYxrzca6XkxqSSgLURseIrGBBG8UUPKxR3b8ZSr8\r\nDJ25VhReTys9infixeAJAT4YLQYXJW/Qio6dhZRt+QiO0zV6n8DaF9LDkree\r\n/S0E586AU80ACLd29MbYf4yHrWtri6DrqU9TcPWLaI/l3D4forpmfTHboKMQ\r\nBn4K0cMickvPECQhKz5nr/weUqhAIYkKuxDSZXd2AGZST5vXUs47vFU6bnuQ\r\nbNJ+smV3xH0CZSa1ECayEovyoupBAYLZAL0=\r\n=j4iH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"emanuel.miron","email":"emanuel.miron6@gmail.com"},"maintainers":[{"name":"emanuel.miron","email":"emanuel.miron6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-vat-ssl_1.0.0_1649846516560_0.8493635731914955"},"_hasShrinkwrap":false},"1.0.1":{"_from":"validate-vat-ssl","_inBundle":false,"_integrity":"sha512-Jao/jFcLgueHWmM0wLvNylqHGiX8xAFuOQxmZmLbjfsZ/pc/Mjh9zxqx38TnFmbDyl4KeHFpjUPKXJBSmfGM5Q==","_location":"/validate-vat-ssl","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"validate-vat-ssl","name":"validate-vat-ssl","escapedName":"validate-vat-ssl","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"_resolved":"https://registry.npmjs.org/validate-vat-ssl/-/validate-vat-ssl-1.0.0.tgz","_shasum":"7a30a47d3a68db20a17d065c3fcec1ef70932878","_spec":"validate-vat-ssl","_where":"/home/emanuel/Desktop/01_Projects/04_VAT EU check","author":{"name":"Emanuel Miron"},"bugs":{"url":"https://github.com/EmanuelMiron/validate-vat-ssl/issues"},"dependencies":{},"deprecated":false,"description":"A Europe VAT number validation lib","devDependencies":{"coffee-script":"1.12.7","expect.js":"0.3.1","mocha":"6.1.4"},"directories":{"lib":"lib"},"homepage":"https://github.com/EmanuelMiron/validate-vat-ssl#readme","keywords":["VAT","VIES","Tax","Number","Validation","node.js"],"license":"MIT","main":"validate-vat-ssl.js","name":"@emanuel_miron/validate-vat-ssl","repository":{"type":"git","url":"git+https://github.com/EmanuelMiron/validate-vat-ssl.git"},"version":"1.0.1","gitHead":"a473b0fca122ba5d6dedfeec5933292c346f4085","_id":"@emanuel_miron/validate-vat-ssl@1.0.1","_nodeVersion":"12.22.11","_npmVersion":"6.14.16","dist":{"integrity":"sha512-aALgLWk4dHDxLb3F1az6zTt2SMwJI37sTbMgG5naj6K/HzdXGyTWG9TZxPG74fWagkecScXJS3bbjk08M0Iidw==","shasum":"4279773233d3c233bfed36f2de005cb0125e6500","tarball":"https://registry.npmjs.org/@emanuel_miron/validate-vat-ssl/-/validate-vat-ssl-1.0.1.tgz","fileCount":3,"unpackedSize":10610,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpljCU3X4FfwcUAzpced0QBObeQFsJiy7BUQNtx17AYAIgOgnHzE6c6NtO6VJN1Jsj9QQXm/agyJQU3CRJ7V38cuY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVrAdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoc+w/+PCSQeZWLMVNQAYZjO/VXd90+WoY/CsMe53FdorxjhUUG8rYO\r\n1uj5qSaGhL+nEHnYymVC+KZoqC5pr/t9MKnOd1UlGQwWxHijOY8Ewyu4WsM8\r\nKnyij6TkVxVDGJ1kTmEdYYDTysBQSkd/VdPBI+jAZ8EwSlrvJb+kkSM4Th+k\r\nKzLJ6mBE8Bvz9DxMQmw8xnCAidFQBvS4AxtzkRFanq8BY6TrSuTFfBq2T3Mm\r\nwQb8sw3MEx8EaPG3CZj+j7k28O1XHJnFLW3T/x3ZUr/BmfngvDJV2DTrzYeT\r\nDh/LWFZY8E5+L/8bsZ5IEXeBDwgwYN/Y67e6jwIHtpWF5PpiMuFoVtSUGrOi\r\nN4dunj25YhT/rRoijg7J2NMLosB9qVsSNOyj/yQpKCp3GQkSUS0njZIXRKQj\r\nYjvi80OQzRg4WEdOTVPXeQMoZcKyaq/IOc+dfDxe8ofcxTo0bOXHxRYPrSB6\r\nTF7tlN7tsds4GVn5M5Ah1TWQBqxnFapxO6fTVJPXsNog0gthc12tR/b4vKR9\r\nz5lc1cT3Kyye3/6q+qWfjY7dl525OgXxJr4+FlkLpEhQFqprmv4XX0nBJ0gY\r\npyfJ3Jd+K+MErD2uDl4wUqHP83+AVH/7Wa2t+obdohewkRODaYQ0yMIVk/nH\r\n6Ccqg0ZDsRNpdxNanQZzaSNpiSc6vhEMHw8=\r\n=rJyd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"emanuel.miron","email":"emanuel.miron6@gmail.com"},"maintainers":[{"name":"emanuel.miron","email":"emanuel.miron6@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-vat-ssl_1.0.1_1649848349173_0.8542271030296555"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-13T10:41:56.461Z","1.0.0":"2022-04-13T10:41:56.699Z","modified":"2022-04-13T11:12:29.408Z","1.0.1":"2022-04-13T11:12:29.327Z"},"maintainers":[{"name":"emanuel.miron","email":"emanuel.miron6@gmail.com"}],"description":"A Europe VAT number validation lib","homepage":"https://github.com/EmanuelMiron/validate-vat-ssl#readme","keywords":["VAT","VIES","Tax","Number","Validation","node.js"],"repository":{"type":"git","url":"git+https://github.com/EmanuelMiron/validate-vat-ssl.git"},"author":{"name":"Emanuel Miron"},"bugs":{"url":"https://github.com/EmanuelMiron/validate-vat-ssl/issues"},"license":"MIT","readme":"# Validate European VAT number with SSL support\n\n**This package is a fork from https://github.com/virschidai/validate-vat\n\n**Note: if you are using typescript, please try out https://github.com/viruschidai/validate-vat-ts**\n\nA very lightweight, tiny lib (no external dependencies) allows you to verify the validity of a VAT number issued by any European Union Member State. This lib is basically calling web service provided by VIES (at http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl) for VAT number validation. \n\n## What is a VAT number?\nA value added tax identification number or VAT identification number (VATIN) is an identifier used in many countries, including the countries of the European Union, for value added tax purposes.\n\n## Get started\n```bash\nnpm install validate-vat\n```\nIn your code\n```javascript\nvar validate = require('validate-vat');\nvalidate(countryCode, vatNumber, callback)\n```\n#### Example\n```javascript\nvar validate = require('validate-vat');\nvalidate( 'xx',  'xxxxxxx',  function(err, validationInfo) {\n    console.log(validationInfo);\n});\n```\n\n##### Returns\nwhen valid\n```javascript\n{\n  countryCode: 'xx',\n  vatNumber: 'xxxxxxxxx',\n  requestDate: '2013-11-22+01:00',\n  valid: true,\n  name: 'company name',\n  address: 'company address'\n}\n```\nwhen invalid\n```javascript\n{\n  countryCode: 'xx',\n  vatNumber: 'xxxxxxxxxx',\n  requestDate: '2013-11-22+01:00',\n  valid: false,\n  name: '---',\n  address: '---'\n}\n```\npossible error messages\n```javascript\n  'The provided CountryCode is invalid or the VAT number is empty'\n  'The VIES VAT service is unavailable, please try again later'\n  'The VAT database of the requested member country is unavailable, please try again later'\n  'The request to VAT database of the requested member country has timed out, please try again later'\n  'The service cannot process your request, please try again later'\n  'Unknown error'\n```\nFor more details usage, please check test\n\n## Change Log\n\n### 0.7.0 \n- Remove UK & Add Northern Ireland\n### 0.6.0 \n- Use https VIEW endpoint\n\n### 0.5.0 \n- Use IPv4 explicitly https://github.com/viruschidai/validate-vat/pull/13\n\n### 0.4.0\n- Added a timeout option in https://github.com/viruschidai/validate-vat/pull/9\n- Upgraded versions of dev dependencies to latest versions\n\n### 0.3.1\nWrap field parse in a try catch block when it can not parse a soap message. The soap message will be attached to the error object for furthur investigation.\n\n### 0.3.0 - 05/Dec/2013\nInstead of\n`var validate = require('validate-vat').validate`\n, you should call\n`var validate = require('validate-vat)'\nThis will break your code, so update all the usages if you want to use this version\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2013 viruschidai@gmail.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","readmeFilename":"README.md"}