{"_id":"@getevy/luhn-validation","_rev":"3-edfde978a7b3c26dbce9cf5939ab42d8","name":"@getevy/luhn-validation","dist-tags":{"latest":"11.0.0"},"versions":{"11.0.0":{"name":"@getevy/luhn-validation","version":"11.0.0","keywords":["ean","ean-checker","ean-validation","ean-validator","upc","upc-checker","upc-validation","upc-validator","imei","imei-checker","imei-validation","imei-validator","eid","eid-checker","eid-validation","eid-validator","isbn","isbn-checker","isbn-validation","isbn-validator","validator","validation","luhn","luhn-algorithm","luhn-checksum"],"author":{"name":"@kfbfarley"},"license":"MIT","_id":"@getevy/luhn-validation@11.0.0","maintainers":[{"name":"bobylito","email":"bobylito@gmail.com"},{"name":"emilyevy","email":"emily@evy.eu"},{"name":"kseniia_evy","email":"kseniia@evy.eu"},{"name":"shana-evy","email":"shana@evy.eu"}],"dist":{"shasum":"048bf84801fab73b1caef93e0ba4458311a94f64","tarball":"https://registry.npmjs.org/@getevy/luhn-validation/-/luhn-validation-11.0.0.tgz","fileCount":36,"integrity":"sha512-mT6Nrc63xaRtl2SOlZxON5HJ1pSiRrafwVlgRQOeiGo5hm9kWU9RLoR9yEdVIfULSkbclgJJt1QLd0wwki/Qsw==","signatures":[{"sig":"MEUCIQCLgZt214UDMgo1wxyCgsEiXAQvaRruQeuNoQB0kHxxzgIgeJLxP+z+AgVt907av0r5Ri0GC/rVS7tOIfuIN8lyM+U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28520},"main":"lib/index.js","types":"lib/index.d.ts","gitHead":"fe21a2446eb692d8781d038335afe9586388e7c5","scripts":{"lint":"tslint -p tsconfig.json","test":"jest --config jestconfig.json","build":"tsc","format":"prettier --write \"src/**/*.ts\"","prepare":"npm run build","version":"npm run format && git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint"},"_npmUser":{"name":"bobylito","email":"bobylito@gmail.com"},"_npmVersion":"10.8.2","description":"A full TypeScript EAN, UPC, IMEI, EID, ISBN & card validation tool","directories":{},"_nodeVersion":"22.7.0","dependencies":{"big-integer":"^1.6.51"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.1.2","tslint":"^6.1.3","ts-jest":"^29.0.3","prettier":"^3.0.0","@types/jest":"^29.1.2","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/luhn-validation_11.0.0_1726650970607_0.554987838577681","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-09-18T09:16:10.607Z","modified":"2025-11-12T11:20:13.333Z","11.0.0":"2024-09-18T09:16:10.779Z"},"author":{"name":"@kfbfarley"},"license":"MIT","keywords":["ean","ean-checker","ean-validation","ean-validator","upc","upc-checker","upc-validation","upc-validator","imei","imei-checker","imei-validation","imei-validator","eid","eid-checker","eid-validation","eid-validator","isbn","isbn-checker","isbn-validation","isbn-validator","validator","validation","luhn","luhn-algorithm","luhn-checksum"],"description":"A full TypeScript EAN, UPC, IMEI, EID, ISBN & card validation tool","maintainers":[{"email":"bobylito@gmail.com","name":"bobylito"},{"email":"emily@evy.eu","name":"emilyevy"}],"readme":"<h1 align=\"center\">\n      <br>A full TypeScript EAN, UPC, IMEI, EID, ISBN & card validation tool<br/>\n</h1>\n\n** Forked from https://github.com/kfbfarley/luhn-validation **\n\nA quick and useful TypeScript package verify whether the EAN, UPC, IMEI, EID, ISBN, and card is valid or not, it uses <b>Luhn algorithm</b> validation method.\n\n> [Luhn algorithm](https://www.geeksforgeeks.org/luhn-algorithm/) also known as the modulus 10 or mod 10 algorithm, is a simple checksum formula used to validate a variety of identification numbers.\n\n## 🚀 Technologies\n\nThis project was built using the following technologies:\n\n- [Typescript](https://www.typescriptlang.org/)\n- [Jest](https://jestjs.io/)\n- [Prettier](https://prettier.io/)\n- [Tslint](https://palantir.github.io/tslint/)\n- [BigInteger](https://github.com/peterolson/BigInteger.js)\n\n## 💻 Installation\n\nTo add this package to your project, simply execute the following command:\n\n> Remind: You must be on your project root directory\n\n```\n$ npm install luhn-validation\n```\n\n## 🔎 Usage\n\n```\n$ import { imei } from 'luhn-validation';\n```\n\n> Tip: Place your mouse pointer over the validate and you will have access to descriptions\n\n### Methods\n\n- ean (string | number)\n  > Validate EAN number\n- upc (string | number)\n  > Validate UPC number\n- imei (string | number)\n  > Validate IMEI number\n- eid (string)\n  > Validate EID number\n- isbn (string | number)\n  > Validate ISBN number\n- card (string | number)\n  > Validate credit/debit card number\n\n## 📏 Example\n\nIf you want to check if an IMEI is valid or not, do the following:\n\n```\n$ import { imei } from 'luhn-validation';\n// validate function returns a boolean\n\nconsole.log(imei(868241056923981))\n//boolean result\n```\n\n## 👍 Contributing\n\nContributions are what make this platform an amazing place to learn, inspire, and create. Please feel free to visit the [open issues](https://github.com/kfbfarley/luhn-validation/issues) section to propose or create a related issue.\n\n## 📄 Licensing\n\nThis repository is MIT licensed, as found in the [LICENSE][l] file.\n\n[luhn-validation](https://github.com/kfbfarley/luhn-validation) has no documentation, just this repo.\n\n[l]: https://github.com/kfbfarley/luhn-validation/blob/master/LICENSE\n","readmeFilename":"README.md"}