Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@einvoice-ts/serializer

Latest version: v0.5.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: albertfdp
0 Stars
0 Forks
5 Versions
TypeScript Repo language

Scan summary

@einvoice-ts/serializer was last scanned on 29 Nov 2026 at version 0.5.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions, all published on 29 Nov 2026.
  • Findings: No rules fired in version 0.5.1.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.1 LATEST 29 Nov 2026 No rules fired
0.5.0 29 Nov 2026 No rules fired
0.4.1 29 Nov 2026 No rules fired
0.4.0 29 Nov 2026 Not shown
0.0.0-stage 29 Nov 2026 Not shown

No rules fired in 0.5.1

Findings

Findings for v0.5.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.5.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@einvoice-ts/serializer

Deterministic, schema-ordered UBL XML serializer for Peppol BIS Billing 3.0 documents: model in, XML out. Depends only on @einvoice-ts/core.

Part of einvoice-ts. Guide: your first invoice.

Install

pnpm add @einvoice-ts/serializer

Usage

import { serialize } from '@einvoice-ts/serializer';

const xml = serialize(invoice);
// <?xml version="1.0" encoding="UTF-8"?>
// <Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
//          xmlns:cac="..." xmlns:cbc="...">
//   <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#...</cbc:CustomizationID>
//   ...
// </Invoice>

serialize(invoice, { declaration: false, indent: false }); // one line, no prolog
serialize(creditNote, { indent: '\t' }); // tab-indented

serialize() accepts any document of the model - canonical (Invoice, CreditNote) or unchecked (the parser's output) - and returns a string.

Option Type Default Meaning
declaration boolean true Write <?xml version="1.0" encoding="UTF-8"?> first
indent false \| number \| string 2 Spaces per level, the indent string, or no whitespace

What it guarantees

  • Deterministic. Elements and attributes are written in the order of the Peppol BIS Billing 3.0 syntax, taken from the runtime schema in @einvoice-ts/core - never in the order of the object's keys. Two equal documents always produce byte-identical XML.
  • XSD-valid. The output of the package's fixtures and of every official Peppol example validates against the OASIS UBL 2.1 schemas (checked in the test suite with xmllint-wasm).
  • Faithful. Absent (undefined, null) values are skipped, empty aggregates are written as empty elements, and text is kept verbatim apart from &, <, > and the carriage return - which a parser would otherwise rewrite as a newline (attribute values additionally escape ", tab and newline). The root carries exactly three namespace declarations; UBLVersionID and UBLExtensions are never written.
  • Nothing else. No defaults, no computed totals, no reformatting of decimals - run the document through createInvoice() / createCreditNote() from @einvoice-ts/core for that. A value that is not a string where the schema expects one - a number, a Decimal, a Date, or an object with neither a value nor a known attribute - throws a TypeError naming the XPath of the element, rather than being written as an empty element. A text or attribute value that holds a character XML 1.0 does not allow (a control character other than tab, line feed and carriage return, U+FFFE, U+FFFF, half of a surrogate pair) throws a RangeError naming the XPath and the code point, because no escape can write it and the output would not be well-formed.

License

MIT. Some generated files reproduce specification text from OpenPeppol, CEN (EUPL-1.2) and OASIS; see NOTICE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @einvoice-ts/serializer

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229