sleavely / bark-js Goto Github PK
View Code? Open in Web Editor NEW๐ฌ Parse barcode inputs ๐ท๏ธ in a unified GS1-128 format ๐ฆ๐
License: Other
๐ฌ Parse barcode inputs ๐ท๏ธ in a unified GS1-128 format ๐ฆ๐
License: Other
Hello, I was testing your package but please change the help because the correct way to install your package is:
npm install bark-js and not npm install bark
Regards.
@Sleavely Lot Code, Qty was not decoded properly for this GS1 Value.
let b = BarkJs('020002160010536011190801374100001234638')
console.log(b)
Giving this Output.
[
{
"ai": "02",
"title": "CONTENT",
"value": "00021600105360",
"raw": "00021600105360"
},
{
"ai": "11",
"title": "PROD DATE",
"value": "2019-08-01",
"raw": "190801"
},
{
"ai": "37",
"title": "COUNT",
"value": "41000012",
"raw": "41000012"
},
{
"ai": "3463",
"title": "WIDTH (yd), log",
"value": "0.8",
"raw": "8"
}
]
Here is the Original barcode for your reference.
Hi,
When I use the library for this barcode
01054001414133413103000444
I suspect the expected result should contain
05400141413342
as GTIN part,
but I'm getting
05400141413341
I suspect something might be wrong calculating the check digit part:
https://www.gs1.org/services/check-digit-calculator
As you can see in this image the check-digit should be 2 instead of 1
I have two similar barcodes. One will scan correctly and the other will not:
Produces Error (Uncaught Error: Invalid AI at start of barcode: 197):
01108573260055401722081110A2021121092220084115197
Does Not Produce Error:
01108573260055401721102910A1905221042920115956137
Information :-
System:
OS: Windows 10 10.0.19042
CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
Memory: 559.27 MB / 7.82 GB
Binaries:
Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 28, 30, 33
Build Tools: 30.0.2, 33.0.0
System Images: android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.66.4 => 0.66.4
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
I got this error when i tried to parse value of gs128 type barcode which is having expiry date
here is the barcode which i tried to parse
here is the error which i am getting
Please help me thank you
travis-ci.org migrated to travis-ci.com a while back, and it seems like the CI pipeline isn't running anymore. Perhaps it's time to switch out Travis in favor of CircleCI?
Since I updated to the latest version, the decoding fails as soon as their is a date AI in the barcode.
Tested with AI 11 and 17, same behavior.
After investigation, this is linked to the changes made in d01ae5a
It looks like this
is undefined, so I would suggest to go back with exports.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.