npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ediflow/eancom-2002

v0.3.0

Published

EANCOM 2002 (S3) Standard Definitions - 50 Message Types for Retail & Supply Chain

Downloads

128

Readme

@ediflow/eancom-2002

EANCOM 2002 (S4) Standard Definitions - GS1's EDIFACT Subset for Retail

NPM Version License: MIT Package Size

EANCOM 200250 Message TypesGS1 StandardMIT LicensedFree


📦 What is this?

This package contains EANCOM 2002 (S4) standard definitions for use with @ediflow/core.

EANCOM is GS1's industry-specific subset of UN/EDIFACT optimized for retail, consumer goods, and supply chain operations.

Includes:

  • Message structures (50 message types)
  • Segment definitions
  • Element definitions
  • Composite definitions
  • Code lists

Version: EANCOM 2002 (Syntax 4) - Industry standard for retail


🚀 Installation

# Install core library (required)
npm install @ediflow/core

# Install this standard package
npm install @ediflow/eancom-2002

📊 Supported Message Types (50)

🛒 Core Retail Messages

| Message Type | Description | Use Case | |--------------|-------------|----------| | ORDERS | Purchase Order | Order placement | | ORDRSP | Order Response | Order confirmations | | DESADV | Despatch Advice | Shipping notifications | | RECADV | Receiving Advice | Goods receipt | | INVOIC | Invoice | Billing documents | | PRICAT | Price Catalogue | Product pricing | | SLSRPT | Sales Report | Sales data |

📦 Logistics & Transport

| Message Type | Description | |--------------|-------------| | IFTMIN | Transport Instructions | | IFTSTA | Transport Status | | IFCSUM | Forwarding Summary |

💰 Financial Messages

| Message Type | Description | |--------------|-------------| | REMADV | Remittance Advice | | FINSTA | Financial Statement | | PAYMUL | Multiple Payment | | CREMUL | Credit Advice | | DEBMUL | Debit Advice |

🏭 Inventory & Planning

| Message Type | Description | |--------------|-------------| | INVRPT | Inventory Report | | DELFOR | Delivery Forecast | | DELJIT | JIT Delivery Schedule | | PRODAT | Product Data |

+ 32 additional message types covering logistics, finance, and supply chain operations.


📖 Usage Example

import { DIContainer } from '@ediflow/core';

const container = DIContainer.getInstance();
const parseUseCase = container.resolve('ParseEDIUseCase');
const validateUseCase = container.resolve('ValidateMessageUseCase');

// Parse EANCOM message
const parsed = parseUseCase.execute({
  message: eancomString,
  standard: 'EDIFACT'
});

// Validate against EANCOM 2002 structure
const validation = validateUseCase.execute({
  message: parsed.message,
  messageType: 'ORDERS',
  version: 'EANCOM2002',
  repositoryPath: './node_modules/@ediflow/eancom-2002/data'
});

if (validation.success) {
  console.log('✅ Valid EANCOM 2002 ORDERS message!');
}

📁 Package Contents

@ediflow/eancom-2002/
└── data/
    ├── codes/               # Code lists
    ├── composites.json      # Composite elements
    ├── elements.json        # Data elements
    ├── messages/            # Message structures (50 types)
    │   ├── APERAK.json
    │   ├── ORDERS.json
    │   ├── ORDRSP.json
    │   ├── DESADV.json
    │   ├── RECADV.json
    │   ├── INVOIC.json
    │   ├── PRICAT.json
    │   └── ... (43 more)
    └── segments.json        # Segment definitions

Package Size: ~1.2 MB


🎯 When to Use EANCOM 2002

Perfect for:

  • Retail industry - Consumer goods, grocery, fashion
  • GS1 compliance - Industry-standard subset
  • Supply chain - Distribution, logistics, warehousing
  • European markets - Widely adopted in EU
  • Established systems - Legacy integration (2002-present)

Industries using EANCOM:

  • 🛒 Retail & E-commerce
  • 🍕 Food & Beverage
  • 👕 Fashion & Apparel
  • 🏥 Healthcare
  • 📦 Logistics & Distribution

Consider alternatives if:

  • 🔄 Full UN/EDIFACT - Need non-GS1 messages? Use @ediflow/edifact-d*
  • 🔄 X12 - North American standard? Use @ediflow/x12-*

🆚 EANCOM vs UN/EDIFACT

| Feature | EANCOM 2002 | UN/EDIFACT | |---------|-------------|------------| | Message Types | 50 (retail-focused) | 200+ (all industries) | | Complexity | Simplified subset | Full specification | | Industry | GS1/Retail | Cross-industry | | Use Case | Supply chain | General B2B |

EANCOM = UN/EDIFACT subset optimized for retail!


📦 Related Packages

Core:

Other EDIFACT Standards:


📚 Documentation


🤝 Contributing

Data corrections or additional message types? We welcome contributions!


📄 License

MIT License - see LICENSE


🔗 Links

  • NPM: https://npmjs.com/package/@ediflow/eancom-2002
  • GitHub: https://github.com/ediflow-lib/core
  • GS1 EANCOM: https://www.gs1.org/standards/edi/eancom

Built with ❤️ by the EDIFlow community