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

@financica/pcmn

v0.1.1

Published

Zero-dependency Belgian PCMN (Plan Comptable Minimum Normalisé) class taxonomy: maps income-statement and fixed-asset account classes to economic categories, with the statutory director-remuneration (618) rule.

Downloads

132

Readme

@financica/pcmn

Zero-dependency Belgian PCMN (Plan Comptable Minimum Normalisé) class taxonomy. It maps income-statement and fixed-asset account classes to a small set of economic categories, so any app in the suite classifies revenue, costs and assets the same way. It is deliberately class-level (not a full chart of accounts): the shared thing is the meaning of each PCMN class.

import { plCategoryForCode, isCashClass, fixedAssetGroupForCode } from "@financica/pcmn";

plCategoryForCode("700000"); // "revenue"
plCategoryForCode("610000"); // "services"
plCategoryForCode("620200"); // "personnel"
plCategoryForCode("618000"); // "services"  <- the director-remuneration rule
isCashClass("550000");       // true
fixedAssetGroupForCode("23"); // "tangible"

The director-remuneration rule (618)

In the PCMN, the remuneration of a company director/manager who is not employed under a contract of employment (a self-employed dirigeant d'entreprise, the usual case for an SRL/SA founder paying themselves) is booked in account 618, which belongs to class 61 "Services et biens divers" — not class 62 "Rémunérations". plCategoryForCode encodes this so owner pay is never miscounted as personnel, which is what lets a financial plan reconcile against real bookkeeping.

Exports

  • PlCategory, PCMN_PL_CLASSES, plCategoryForCode(code) — income-statement classes (60-66 charges, 70-76 income) and the categories they map to.
  • DIRECTOR_REMUNERATION_ACCOUNT ("618").
  • CASH_CLASSES, isCashClass(code) — liquidity classes 54/55/57.
  • FixedAssetGroup, PCMN_FIXED_ASSET_CLASSES, fixedAssetGroupForCode(code) — balance-sheet fixed-asset classes 20-28.

Account codes may be passed at any length (2-digit class up to a full leaf code); classification uses the leading digits.

License

MIT