Package Exports
- datamatrix-decoder
- datamatrix-decoder/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (datamatrix-decoder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
DataMatrix Decoder
Description:
Decoder for medical datamatrix, this library extract and export the essentials information contain into a DataMatrix.
How to use ?
Install the dependency with npm:
npm install datamatrix-decoder
or with warn:
yarn add datamatrix-decoder
Example:
import {readDataMatrix} from 'datamatrix-decoder'
const dataMatrix = readDataMatrix('010340093014544917221031108110753')
/**
* Should return you an object like:
* {
* gtin: '3400930145449',
* expiry: '2022-10-31',
* lot: '8110753',
* serial: null
* }
*
* /