Scan your whole stack
From OX Research Newsroom
Are you using @einvoice-ts/serializer?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.1
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
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.
pnpm add @einvoice-ts/serializer
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 |
@einvoice-ts/core - never in the order of the object's
keys. Two equal documents always produce byte-identical XML.xmllint-wasm).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.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.MIT. Some generated files reproduce specification text from OpenPeppol, CEN (EUPL-1.2) and OASIS; see NOTICE.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.