Buckets:
32.1 GB
673,093 files
Updated 5 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| dist | 8 items | ||
| LICENSE | 1.07 kB xet | af7270df | |
| README.md | 595 Bytes xet | 1baa972d | |
| package.json | 953 Bytes xet | 7a1eb533 |
@oslojs/asn1
Documentation: https://asn1.oslojs.dev
A JavaScript library for encoding and decoding ASN.1 with Distinguished Encoding Rules (DER) by Oslo.
- Runtime-agnostic
- No third-party dependencies
- Fully typed
import { parseASN1NoLeftoverBytes } from "@oslojs/asn1";
const parsed = parseASN1NoLeftoverBytes(encoded);
const oid = parsed.sequence().at(0).objectIdentifier();
if (!oid.is("1.2.840.10045.4.3.2")) {
throw new Error("Invalid OID");
}
This library only supports DER and not CER or BER.
Installation
npm i @oslojs/asn1
- Total size
- 32.1 GB
- Files
- 673,093
- Last updated
- Mar 19
- Pre-warmed CDN
- US EU US EU