Update README

This commit is contained in:
Miguel Mota 2022-11-30 21:28:10 -08:00
parent 25743c92d3
commit 59d32cc7f2
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9
1 changed files with 12 additions and 0 deletions

View File

@ -39,6 +39,18 @@ From [NPM](https://www.npmjs.com/package/merkletreejs):
npm install merkletreejs
```
Import as ES6 module
```js
import { MerkleTree } from 'merkletreejs'
```
Import as CommonJs
```js
const { MerkleTree } = require('merkletreejs')
```
### CDN
Available on [jsDelivr](https://www.jsdelivr.com/) CDN: