@peculiar/asn1-asym-key
ASN.1 schema for asymmetric key packages and OneAsymmetricKey structures defined in RFC 5958.
Last updated a month ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @peculiar/asn1-asym-key 
SYNC missed versions from official npm registry.

@peculiar/asn1-asym-key

License npm version

NPM

ASN.1 schema for asymmetric key packages and OneAsymmetricKey structures defined in RFC 5958.

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.

Installation

npm install @peculiar/asn1-asym-key

Breaking Changes In v3

v3 is ESM-only and requires Node.js ^20.19.0 || >=22.12.0 (was >=14). CommonJS code can still require("@peculiar/asn1-asym-key") on these versions; Node.js 22.0–22.11 can't. The public API is unchanged. See the full notes.

  • TypeScript compiling to CommonJS: use "module": "node20" or "nodenext" (node16 fails with TS1479). ESM and bundler setups need no changes.
  • Jest in CommonJS mode: switch to ESM mode or Vitest, or configure an ESM-to-CommonJS transformer and make sure transformIgnorePatterns doesn't exclude the @peculiar/* packages and asn1js.
  • Deep imports (@peculiar/asn1-asym-key/build/...) are blocked by exports; import from @peculiar/asn1-asym-key.
  • Peer dependencies: @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.

Specifications

Current Tags

  • 3.0.0                                ...           latest (a month ago)

20 Versions

  • 3.0.0                                ...           a month ago
  • 2.11.1                                ...           a month ago
  • 2.11.0                                ...           2 months ago
  • 2.10.0                                ...           2 months ago
  • 2.9.5                                ...           2 months ago
  • 2.9.4                                ...           3 months ago
  • 2.9.3                                ...           3 months ago
  • 2.9.2                                ...           3 months ago
  • 2.9.0                                ...           3 months ago
  • 2.8.0                                ...           6 months ago
  • 2.7.0                                ...           7 months ago
  • 2.6.1                                ...           10 months ago
  • 2.6.0                                ...           a year ago
  • 2.5.0                                ...           a year ago
  • 2.4.0                                ...           a year ago
  • 2.3.15                                ...           2 years ago
  • 2.3.13                                ...           2 years ago
  • 2.3.8                                ...           3 years ago
  • 2.3.6                                ...           4 years ago
  • 2.3.5                                ...           4 years ago
Downloads
Total 35
Today 3
This Week 15
This Month 18
Last Day 7
Last Week 2
Last Month 13
Dependencies (2)
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE