@compound-finance/compound-js
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "@compound-finance/compound-js", | ||
"browser": "dist/browser/compound.min.js", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A JavaScript SDK for Ethereum and the Compound Protocol.", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -74,2 +74,24 @@ # Compound.js [Alpha] | ||
## Install / Import | ||
Web Browser | ||
```html | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@compound-finance/compound-js@latest/dist/browser/compound.min.js"></script> | ||
<script type="text/javascript"> | ||
window.Compound; // or `Compound` | ||
</script> | ||
``` | ||
Node.js | ||
``` | ||
npm install @compound-finance/compound-js | ||
``` | ||
```js | ||
const Compound = require('@compound-finance/compound-js'); | ||
``` | ||
## More Code Examples | ||
@@ -157,7 +179,7 @@ | ||
```html | ||
<!-- Public NPM -> jsdeliver build --> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@compound-finance/compound-js@latest/dist/compound.min.js"></script> | ||
<!-- Local build (do `npm install` first) --> | ||
<script type="text/javascript" src="./dist/browser/compound.min.js"></script> | ||
<!-- Public NPM -> jsdeliver build --> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@compound-finance/compound-js@latest/dist/browser/compound.min.js"></script> | ||
``` | ||
@@ -164,0 +186,0 @@ |
Sorry, the diff of this file is not supported yet
917611
193