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

@emdzej/ncsx-pfl

v0.9.0

Published

Parser/serializer for NCSEXPER .pfl profile files. Spec: ../../docs/pfl-format.md

Downloads

228

Readme

@emdzej/ncsx-pfl

Typed parser + serializer for NCSEXPER .pfl profile files — the INI-style configs that live under C:\NCSEXPER\PFL\ and that NCS Expert's "Load profile" menu picks up. Best known is REVTOR.PFL, the community profile that enables CODIERDATEN_LESEN and a few other expert-mode options.

Spec: ../../docs/pfl-format.md.

What it does

  • Reads a .pfl text body into a typed PflProfile object (one TypeScript field per documented INI key, with enums / numbers / booleans coerced correctly).
  • Bounds-checks Lesemodus and similar value-range enums.
  • Preserves opaque fields like ProfilPruefsumme as hex strings (the loader doesn't verify it, and we don't either — see "Why no checksum?" below).
  • Round-trips byte-stable for unmodified profiles: section order, key order, and value formatting all match what NCSEXPER itself writes.

Install

pnpm add @emdzej/ncsx-pfl
# or:
"@emdzej/ncsx-pfl": "workspace:*"

Quick start

import { readFileSync, writeFileSync } from 'node:fs';
import { parsePfl, serializePfl } from '@emdzej/ncsx-pfl';

const raw = readFileSync('NCSEXPER/PFL/Expertenmodus.pfl', 'latin1');
const profile = parsePfl(raw);

console.log(profile.header.bezeichnung);          // "Expertenmodus 2.0"
console.log(profile.coding.fktSgCodieren);        // true
console.log(profile.fgnrZcs.fgNrEingabeModus);    // 1

// Modify a knob and write back:
profile.coding.fktCodierdatenLesen = true;
writeFileSync('out.pfl', serializePfl(profile), 'latin1');

Profile sections

| Section | Type field | What it controls | |------------------|----------------------|------------------------------------------------------| | [KOPF] | PflHeader | Profile name / version / description | | [FGNR_ZCS] | PflFgnrZcs | How VIN / ZCS / FA is sourced | | [SGET] | PflSget | SG-list filter overrides | | [APPLIKATION] | PflApplikation | UI defaults (which tab opens first, etc.) | | [CODIERUNG] | PflCoding | Which jobs are enabled (CODIERDATEN_LESEN!) | | [ASW] | PflAsw | ASW-edit dialog defaults | | [FSWPSW] | PflFswPsw | FSW/PSW-edit dialog defaults, Lesemodus enum | | [NETTODATEN] | PflNettodaten | Nettodata-edit dialog defaults | | [INDIVID] | PflIndivid | Individual-coding flags | | [VERIFIKATION] | PflVerifikation | .ssd script reference |

API

| Export | Purpose | |--------------------|----------------------------------------------------| | parsePfl(text) | Parse a .pfl body to a PflProfile | | serializePfl(p) | Serialize a PflProfile back to .pfl text | | PflProfile | The top-level type (re-exports all section types) |

parsePfl options

parsePfl(raw, {
  onWarning: (w: PflWarning) => { /* unknown section, out-of-range value, … */ },
  strict: false, // default — warn rather than throw on unknown sections
});

Why no checksum?

ProfilPruefsumme is parsed and preserved verbatim. NCSEXPER's profile loader doesn't verify it (confirmed via Ghidra against NCSEXPER 4.0.1's coapiLoadProfil — see docs/pfl-format.md for the reverse-engineering notes). If you want to round-trip-edit a profile and have NCSEXPER load it, you don't need to touch the checksum.

If you want to mint a fresh profile programmatically, the checksum write-path is still open. The community workaround is to copy an existing profile and edit the keys you care about.

Related