
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
e-invoice-codes
Advanced tools
[](https://badge.fury.io/js/e-invoice-codes) [](https://opensource.org/licenses/MIT)
A convenient meta-package that bundles essential code lists for European e-invoicing standards like EN16931, ZUGFeRD, and XRechnung. It simplifies development by providing curated codes from various official sources in one place.
When building applications that handle e-invoices, you often need several standardized code lists from different sources. Instead of installing and managing multiple individual packages, e-invoice-codes provides a single dependency for the most frequently required lists.
This package re-exports the latest, most common code lists from the following specialized packages, simplifying your project's dependency tree:
electronic-address-scheme: Provides the Electronic Address Scheme (EAS) codes.un-ece-recommendation: Provides code lists for units of measure (Rec. 20) and packaging types (Rec. 21).untdid: Provides various code lists from the United Nations Trade Data Interchange Directory.If you are looking for an API solution to generate German e-invoice documents, consider checking out RechnungsAPI, without which this package would not exist.
Install the package using your favorite package manager:
npm install e-invoice-codes
or
yarn add e-invoice-codes
You can import all the necessary code lists directly from the e-invoice-codes package. The exports are aliased for clarity and convenience.
import {
  EAS,
  REC_20,
  REC_21,
  UNTDID_1001,
  UNTDID_5305
} from 'e-invoice-codes';
// Example: Get the latest Electronic Address Scheme codes
console.log('EAS Codes:', EAS);
// [
//   {
//   	code: "0002",
//   	name: "System Information et Repertoire des Entreprise et des Etablissements: SIRENE",
//   },
//   { code: "0007", name: "Organisationsnummer" },
//   { code: "0009", name: "SIRET-CODE" },
//   ...
// ]
// Example: Get UN/ECE Recommendation N°20 (Units of Measure)
console.log('Unit Codes:', REC_20);
// [
//   { code: "05", name: "lift" },
//   { code: "06", name: "small spray" },
//   { code: "08", name: "heat lot" },
//   ...
// ]
// Example: Get UNTDID 5305 (Tax category codes)
console.log('Tax Category Codes:', UNTDID_5305);
// [
//   {
//   	code: "A",
//   	name: "Mixed tax rate",
//   	description: "Code specifying that the rate is based on mixed tax.",
//   },
//   {
//   	code: "AA",
//   	name: "Lower rate",
//   	description: "Tax rate is lower than standard rate.",
//   },
//   ...
// ]
This package re-exports the latest versions of the following code lists:
electronic-address-schemeEAS: The Electronic Address Scheme, used to identify the type of electronic address (e.g., GLN, Leitweg-ID).un-ece-recommendationREC_20: UN/ECE Recommendation N°20 - Codes for Units of Measure.REC_21: UN/ECE Recommendation N°21 - Codes for package types.untdidUNTDID_1001: Document name code.UNTDID_1153: Reference code qualifier.UNTDID_2005: Date or time or period function code qualifier.UNTDID_4451: Text subject code qualifier.UNTDID_4461: Payment means code.UNTDID_5189: Allowance or charge identification code.UNTDID_5305: Duty or tax or fee category code.UNTDID_7143: Item type identification code.UNTDID_7161: Special service description code.While this package provides the most recent and common code lists, you might need a specific historical version or a code list not included here. In such cases, or to further optimize your application's bundle size, you can install the underlying packages directly and import the exact version you need.
npm install electronic-address-schemenpm install un-ece-recommendationnpm install untdidFAQs
[](https://badge.fury.io/js/e-invoice-codes) [](https://opensource.org/licenses/MIT)
The npm package e-invoice-codes receives a total of 2 weekly downloads. As such, e-invoice-codes popularity was classified as not popular.
We found that e-invoice-codes demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.