This dependency was created just for fun and should NOT be in a production environment.
It was purely created for me willing to go through the whole process of creating a library. The implementation of the code was a simple challenge took from reddit, and it's probably bad. For more details, check the acknowledgments bellow.
npm i upc-check-digits-reddit
let upcCheck = require('upc-check-digits-reddit')
Pretty straightforward :
if(upcCheck("042100005264"))
console.log("It's a valid code !")
To contribute, please submit problems in the Issues tab, or give better implementations with a direct Pull request
This project is licensed under the MIT License - see the LICENSE.md file for details
- Please visite r/dailyprogrammer for better implementations
- This dependency was created just for fun and should NOT be in a production environment
- Ty