Skip to content

Commit 496de06

Browse files
committed
update readme
1 parent a9e047e commit 496de06

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,30 @@ This project is designed to help you make your own projects that interact with t
3636
<a href="https://t.me/binance_api_english">Support</a>
3737
</p></b>
3838

39-
#### Installation: **`npm install -s node-binance-api`**
39+
#### Installation
40+
41+
```
42+
npm install -s node-binance-api
43+
```
44+
4045
[![npm install node-binance-api](https://nodei.co/npm/node-binance-api.png?mini=true)](https://npmjs.org/package/node-binance-api)
4146

4247
#### Community Telegram Chat
4348

4449
https://t.me/nodebinanceapi
4550

4651

47-
#### Getting started
52+
#### Getting started (ESM)
53+
```javascript
54+
import Binance from 'node-binance-api';
55+
async function run() {
56+
const exchange = new Binance();
57+
const res = await exchange.futuresTime();
58+
console.log( res );
59+
}
60+
```
61+
62+
#### Getting started (CJS)
4863
```javascript
4964
const Binance = require('node-binance-api');
5065
const binance = new Binance().options({

0 commit comments

Comments
 (0)