mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-25 03:20:12 +01:00
Update README.md
This commit is contained in:
parent
9795df4e14
commit
2f7a4906b1
@ -26,19 +26,20 @@ of which I expect you'll know quite well ([otherwise, go check out js-reactor](h
|
|||||||
```bash
|
```bash
|
||||||
# install from npm
|
# install from npm
|
||||||
npm install js-bigchaindb-driver
|
npm install js-bigchaindb-driver
|
||||||
# Install from GitHub - Depending on your GitHub login credentials (`ssh` or `https`)
|
# Install from GitHub - ssh
|
||||||
npm install git+ssh://github.com/bigchaindb/js-bigchaindb-driver.git
|
npm install git+ssh://github.com/bigchaindb/js-bigchaindb-driver.git
|
||||||
|
# Install from GitHub - https
|
||||||
npm install git+https://github.com/bigchaindb/js-bigchaindb-driver.git
|
npm install git+https://github.com/bigchaindb/js-bigchaindb-driver.git
|
||||||
```
|
```
|
||||||
|
|
||||||
### Import / ES6
|
### Import / ES6
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// ES6
|
// ES6 Browser
|
||||||
import * as driver from 'js-bigchaindb-driver';
|
import * as driver from 'js-bigchaindb-driver';
|
||||||
// ES<<6
|
// ES<<6 Browser
|
||||||
let driver = require('js-bigchaindb-driver');
|
let driver = require('js-bigchaindb-driver');
|
||||||
// CommonJS / node
|
// ES<<6 CommonJS / node
|
||||||
let driver = require('js-bigchaindb-driver/dist/node');
|
let driver = require('js-bigchaindb-driver/dist/node');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user