Skip to content

MasMedIm/UPC-Check-digits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

To know !

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.

Getting Started

npm i upc-check-digits-reddit

Importing

let upcCheck = require('upc-check-digits-reddit')

How to use it ?

Pretty straightforward :

if(upcCheck("042100005264"))
    console.log("It's a valid code !")

Contributing

To contribute, please submit problems in the Issues tab, or give better implementations with a direct Pull request

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Please visite r/dailyprogrammer for better implementations
  • This dependency was created just for fun and should NOT be in a production environment
  • Ty

About

A scanner that can determine if a given (UPC-A) code is a valid bar code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published