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

mako-edifact-sanitizer

v0.1.1

Published

Offline-first EDIFACT pseudonymization aid for synthetic MaKo case sharing.

Readme

mako-edifact-sanitizer

Open-source-ready MVP for transforming synthetic or approved MaKo EDIFACT messages into structurally intact, shareable pseudonymized cases.

Safety boundary: this is an anonymization/pseudonymization aid, not a guaranteed full DSGVO anonymization mechanism and not legal advice. Review results before sharing externally. Do not use real customer or mixed-sensitive EDIFACT data without separate approval and a suitable processing/legal setup.

Library API

const { sanitize } = require('mako-edifact-sanitizer');
const { sanitizedEdifact, report, warnings } = sanitize(edifactText, {
  caseStable: true,
  caseId: 'bundle-1',
  // Explicit opt-in only; default reports never include raw originals.
  debugIncludeRawValues: false,
});

Return shape:

  • sanitizedEdifact: EDIFACT text with segment order, separators, qualifiers, references and payload shape preserved as far as the MVP parser can.
  • report: counts/classes, pseudo-map categories, message type summary, design hooks.
  • warnings: confidence and fallback notices, e.g. offline market-partner lookup.

CLI

node bin/mako-edifact-sanitizer.js fixtures/mscons.synthetic.edi --out sanitized.edi --report report.json
cat fixtures/mscons.synthetic.edi | node bin/mako-edifact-sanitizer.js - > sanitized.edi

Later NPM bin name:

mako-edifact-sanitizer input.edi --out sanitized.edi --report report.json

API key path

The CLI accepts --api-key and the library observes CERNION_API_KEY for a future Cernion Energy Tools market-partner lookup path. The MVP intentionally works offline/fallback-only and does not send lookup calls. Do not hardcode, commit, log or print token values. Users can create an API key at https://cernion.de/cet-token.

MVP coverage

Synthetic fixtures and tests cover MSCONS, UTILMD and APERAK. INVOIC/PRICAT are represented as design hooks/placeholders for a later iteration.

Detected/pseudonymized classes include:

  • MaLo/MeLo/Zählpunkt-like DE... location identifiers
  • BDEW/market-partner-like 99... codes with message-local MP_A, MP_B aliases
  • names, organization names, addresses, e-mail and telephone
  • customer/contract/invoice/device/meter-like qualified references

Verification

npm test
npm run smoke

The default report stores categories and counts only. Raw originals are only included with --debug-include-raw-values / debugIncludeRawValues: true for local debugging and must not be used in shareable reports.