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/edifact-d12a

v0.2.1

Published

EDIFACT D.12A (2012) Standard Definitions - Full Coverage - 196 Message Types

Readme

@ediflow/edifact-d12a

EDIFACT D.12A (2012) Standard Definitions - Full Coverage

NPM Version License: MIT Package Size

EDIFACT D.12A196 Message TypesMIT LicensedFree


📦 What is this?

This package contains EDIFACT D.12A (2012) standard definitions for use with @ediflow/core.

Includes:

  • Message structures (196 message types - FULL COVERAGE)
  • Segment definitions
  • Element definitions
  • Composite definitions
  • Code lists

Version: D.12A (2012) - Comprehensive EDIFACT standard 🎯


🚀 Installation

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

# Install this standard package
npm install @ediflow/edifact-d12a

📊 Supported Message Types (196)

Logistics (Sample)

  • DESADV - Despatch Advice
  • ORDERS - Purchase Order
  • ORDRSP - Order Response
  • RECADV - Receiving Advice
  • IFTMIN - Forwarding & Transport
  • IFTSTA - Transport Status
  • IFCSUM - Consolidation Summary

Financial (Sample)

  • INVOIC - Invoice
  • REMADV - Remittance Advice
  • FINSTA - Financial Statement
  • PAYMUL - Multiple Payment Order
  • CREADV - Credit Advice

Catalog & Pricing (Sample)

  • PRICAT - Price Catalogue
  • SLSRPT - Sales Report
  • PRODAT - Product Data

Healthcare (Sample)

  • MEDPID - Person Identification
  • MEDPRE - Prescription
  • MEDRPT - Medical Service Report

And 180+ more message types! 🚀


📖 Usage Example

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

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

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

// Validate against D.12A structure
const validation = validateUseCase.execute({
  message: parsed.message,
  messageType: 'ORDERS', // Any of 196 message types!
  version: 'D12A',
  repositoryPath: './node_modules/@ediflow/edifact-d12a/data'
});

if (validation.success) {
  console.log('✅ Valid D.12A message!');
}

📁 Package Contents

@ediflow/edifact-d12a/
└── data/
    ├── codes/               # Code lists
    ├── composites.json      # Composite elements
    ├── elements.json        # Data elements
    ├── messages/            # Message structures (196 types!)
    │   ├── APERAK.json
    │   ├── DESADV.json
    │   ├── INVOIC.json
    │   ├── ORDERS.json
    │   ├── PRICAT.json
    │   ├── ... (191 more)
    └── segments.json        # Segment definitions

Package Size: ~4.44 MB


🎯 When to Use D.12A

Use D.12A if:

  • ✅ Need comprehensive message type coverage
  • ✅ Multi-industry integrations (logistics, finance, healthcare)
  • ✅ Large-scale EDI hub or service provider
  • ✅ Want all message types in one package
  • ✅ Don't want to worry about missing message types

This is the most comprehensive EDIFACT package! 🎯

Consider lighter versions if:

  • 🔄 D.20B - Latest standard, but only 7 message types
  • 🔄 D.96A or D.01B - Legacy requirements with fewer message types

📦 Message Type Categories

Business Documents (60+)

ORDERS, ORDRSP, INVOIC, REMADV, QUOTES, REQOTE, ORDCHG, and more

Logistics & Transport (50+)

DESADV, RECADV, IFTMIN, IFTSTA, IFCSUM, IFTMAN, COPARN, and more

Financial (30+)

FINSTA, PAYMUL, PAYORD, CREADV, DEBADV, BANSTA, and more

Catalog & Product (20+)

PRICAT, PRODAT, SLSRPT, INVRPT, PRIHIS, and more

Healthcare (15+)

MEDPID, MEDPRE, MEDRPT, MEDRUC, and more

Customs & Trade (15+)

CUSCAR, CUSDEC, CUSREP, CUSRES, and more

And many more categories! 🌟


📦 Related Packages

Core:

Other EDIFACT Standards:


💡 Why 196 Message Types?

D.12A represents the mature EDIFACT standard (2012) with extensive industry coverage:

  • Enterprise Ready - Handle any EDIFACT message your partners send
  • Future Proof - Support new message types without upgrading
  • One Package - No need to install multiple versions
  • Complete - Covers logistics, finance, healthcare, customs, and more

Perfect for:

  • EDI service providers
  • Multi-industry businesses
  • Large enterprises
  • EDI hubs and platforms

📚 Documentation


🤝 Contributing

Data corrections or additional message types? We welcome contributions!


📄 License

MIT License - see LICENSE


🔗 Links


Made with ❤️ for the EDI community