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

@hochfrequenz/efoli

v0.0.8

Published

enums for edifact formats and format versions used by German utilities

Readme

E-Foli.ts

License: MIT Node.js versions supported npm version CI status badge

@hochfrequenz/efoli is a TypeScript package that contains

  • an enum EdifactFormat that models EDIFACT formats used by German utilities, e.g.
    • UTILMD
    • MSCONS
    • INVOIC
  • an enum EdifactFormatVersion that models validity periods of different message versions, e.g.
    • FV2310 is valid from 2023-10-01 onwards
    • FV2404 is valid from 2024-04-03 onwards
  • helper functions that allow
    • deriving the EdifactFormat from a given Prüfidentifikator (e.g. 55001UTILMDS)
    • deriving the EdifactFormatVersion from a given date (e.g. 2024-01-01FV2310)

It's not much, but we need it at many places. This is why we use this package as a central place to define these formats and versions.

This is the TypeScript port of the Python package efoli.

Installation

npm install @hochfrequenz/efoli

Usage

import {
  EdifactFormat,
  EdifactFormatVersion,
  getFormatOfPruefidentifikator,
  getEdifactFormatVersion,
  getCurrentEdifactFormatVersion,
} from "@hochfrequenz/efoli";

// Derive the EDIFACT format from a Prüfidentifikator
const format: EdifactFormat = getFormatOfPruefidentifikator("55001"); // EdifactFormat.UTILMDS

// Derive the format version for a specific date (UTC timestamp)
const version: EdifactFormatVersion = getEdifactFormatVersion(new Date("2024-01-01T00:00:00Z")); // EdifactFormatVersion.FV2310

// Or pass a plain calendar date (interpreted as midnight Europe/Berlin — preferred for date-only inputs)
const version2: EdifactFormatVersion = getEdifactFormatVersion({ year: 2025, month: 6, day: 6 }); // EdifactFormatVersion.FV2504

// Get the currently active format version
const current: EdifactFormatVersion = getCurrentEdifactFormatVersion();

Setup for Local Development

npm install
npm test          # run unit tests
npm run typecheck # type check
npm run lint      # lint
npm run build     # build CJS + ESM output to dist/

Contribute

You are very welcome to contribute to this repository by opening a pull request against the main branch.