upc-check-digits-reddit

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i upc-check-digits-reddit

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

4.36 kB

Total Files

4

Last publish

Collaborators

  • azermite