$ npm install @peculiar/asn1-csr
@peculiar/asn1-csrASN.1 schema for PKCS #10 certificate signing requests defined in RFC 2986.
Use the exported classes with @peculiar/asn1-schema helpers such as AsnConvert, AsnParser, and AsnSerializer to parse or serialize DER-encoded data defined by the referenced specification.
npm install @peculiar/asn1-csr
v3 is ESM-only and requires Node.js ^20.19.0 || >=22.12.0 (was >=14). CommonJS code can still require("@peculiar/asn1-csr") on these versions; Node.js 22.0–22.11 can't. The public API is unchanged. See the full notes.
"module": "node20" or "nodenext" (node16 fails with TS1479). ESM and bundler setups need no changes.transformIgnorePatterns doesn't exclude the @peculiar/* packages and asn1js.@peculiar/asn1-csr/build/...) are blocked by exports; import from @peculiar/asn1-csr.@peculiar/asn1-schema (^3.0.0) is a peer instead of a dependency, so your app shares one copy with the other @peculiar/asn1-* packages. npm installs peers automatically.© 2010 - cnpmjs.org x YWFE | Home | YWFE