diff --git a/README.md b/README.md index c054227..936fe35 100644 --- a/README.md +++ b/README.md @@ -12,40 +12,34 @@ This package can be installed with either npm or yarn via the following commands ```sh npm install @lapo/asn1js -# or with yarn +# or other tools +npm install @lapo/asn1js yarn add @lapo/asn1js ``` Assuming a standard javascript bundler is setup you can import it like so: ```js -const ASN1 = require('@lapo/asn1js'); -// or with ES modules import ASN1 from '@lapo/asn1js'; ``` A submodule of this package can also be imported: ```js -const Hex = require('@lapo/asn1js/hex'); -// or with ES modules import Hex from '@lapo/asn1js/hex'; ``` -Usage with RequireJS +Usage on the web -------------------- -Can be [tested on JSFiddle](https://jsfiddle.net/lapo/tmdq35ug/). +Can be [tested on JSFiddle](https://jsfiddle.net/lapo/y6t2wo7q/). ```html - ```