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:
parent
6398646954
commit
75632372dc
@ -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)
|
||||
```
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user