Changed import for esm
This commit is contained in:
parent
e235fdb127
commit
d52b8c3dfb
@ -45,7 +45,7 @@ const { video_basic_info, stream } = require('play-dl');
|
|||||||
|
|
||||||
**ES6 modules:**
|
**ES6 modules:**
|
||||||
```ts
|
```ts
|
||||||
import * as play from 'play-dl'; // Everything
|
import play from 'play-dl'; // Everything
|
||||||
|
|
||||||
import { video_basic_info, stream } from 'play-dl'; // Individual functions
|
import { video_basic_info, stream } from 'play-dl'; // Individual functions
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user