Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wankdanker/gs1
gs1 checkdigit generation and validation in javascript
https://github.com/wankdanker/gs1
Last synced: 2 months ago
JSON representation
gs1 checkdigit generation and validation in javascript
- Host: GitHub
- URL: https://github.com/wankdanker/gs1
- Owner: wankdanker
- Created: 2019-05-09T20:38:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-10T20:29:41.000Z (over 5 years ago)
- Last Synced: 2024-08-09T06:11:49.567Z (5 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
gs1
---Generate check digits for various gs1 formats.
GTIN-8, GTIN-12, GTIN-13, GTIN-14, GSIN, SSCC
usage
-----```js
const gs1 = require('gs1')console.log(gs1('2345678'));
//23456785console.log(gs1.checkdigit('2345678'));
//5console.log(gs1.validate('23456785'));
//trueconsole.log(gs1.validate('23456783'));
//false
```license
-------MIT