1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

added missing section

Installation section was missing how to install library
This commit is contained in:
Manan Patel 2020-07-14 20:56:43 +05:30 committed by GitHub
parent 6398646954
commit 75632372dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,12 @@
`ocean-lib-js` is part of the [Ocean Protocol](www.oceanprotocol.com) toolset.
# Installation
```
npm i --save @oceanprotocol/lib
```
# Usage
```
// ES6
import { Ocean, Logger } from '@oceanprotocol/lib'
@ -91,4 +97,4 @@ const config = new Config()
const ocean = await Ocean.getInstance()
await ocean.assets.download(tokenAddress, blob, transactionId, bob)
```
```