JavaScript generic ASN.1 parser (mirror)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add npm package section to readme

authored by

Theo Lampert and committed by lapo.it 628a5e6f e0dd9b85

+23
+23
README.md
··· 5 5 6 6 An example page that can decode Base64-encoded (raw base64, PEM armoring and `begin-base64` are recognized) or Hex-encoded (or local files with some browsers) is included and can be used both [online on the official website](https://lapo.it/asn1js/) or [offline (ZIP file)](https://lapo.it/asn1js/asn1js.zip). 7 7 8 + Usage with npm / yarn 9 + -------------- 10 + 11 + This package can be installed with either npm or yarn via the following commands: 12 + 13 + ``` 14 + npm install @lapo/asn1js 15 + # or with yarn 16 + yarn add @lapo/asn1js 17 + ``` 18 + 19 + Assuming a standard javascript bundler is setup you can import it like so: 20 + ```js 21 + const asn1js = require('@lapo/asn1js'); 22 + // or with ES modules 23 + import asn1js from '@lapo/asn1js'; 24 + ``` 25 + 26 + A submodule of this package can also be imported: 27 + ```js 28 + import Hex from '@lapo/asn1js/hex'; 29 + ``` 30 + 8 31 ISC license 9 32 ----------- 10 33