🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

epcis-js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epcis-js

Library to convert EPCIS messages into JS

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Keywords

EPCIS, Electronic Product Code Information Services, RFID, GS1

Introduction

This is a Node.js libary to parse EPCIS documents. We try to translate it into a more useful javascript structure.

What is EPCIS

For more information checkout the following links:

http://en.wikipedia.org/wiki/EPCIS

http://www.gs1.org/epcis

Impelementation Status

Currently ObjectEvent and AggregationEvent are implemented.

EPCIS Version 1.1 Specification (May 2014)

Required or Optional

FieldsObjectEventAggregationEventTransactionEventTransformationEvent
eventTimeRRRR
recordTimeOOOO
eventTimeZoneOffsetRRRR
sourceListOOOO
destinationListOOOO
bizStepOOOO
dispositionOOOO
readPointOOOO
bizLocationOOOO
bizTransactionListOORO
actionRRR
epcListOO
quantityListOO
childQuantityListO
parentIDOO
childEPCsO
ilmdOO
inputEPCListO
outputEPCListO
inputQuantityListO
outputQuantityListO
transformationIDO

Different meanings of an "Action"

TODO

Notes

  • epcList: If multiple items are listet, the event is valid for all of them. Thus, it can be split into individual events too.

  • If bizTransactionList is given, it maps to the objects identified in epcList and quantityList. This means we could still create individual events here. Right?

General

_Retrospective ( at the time of the event)Prospective (true until contradicted by subsequent event)
WhatEPC, EPCClass + quantity
WhenTime
WhereReadPointIDBusinessLocationID
WhyBusinessStepIDDispositionID
    | *BusinessTransactionList, Source/Destination, ILMD*

Development

The implementation is based on Typescript. To start development run:

npm install     # installs the dependencies
grunt           # runs the tsc compiler

This will watch the *.ts files and compile them into *.js files

Tests

mocha tests/test_aggregation.js

Debugging

mocha --debug-brk tests/test_aggregation.js

Then attach a debugger, e.g. Visual Studio Code.

Keywords

EPCIS

FAQs

Package last updated on 25 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts