Skip to content

Commit

Permalink
Merge 8ec7229 into 2ea2b60
Browse files Browse the repository at this point in the history
  • Loading branch information
c01nd01r committed Aug 13, 2023
2 parents 2ea2b60 + 8ec7229 commit c1ab19b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The log message `[download] Destination: output.mp4` will emit the event type `d
`eventEmitter.child` exposes the spawned yt-dlp process.

```js
import BcDLP from 'bc-dlp'
import { BcDLP } from 'bc-dlp'
const bcDLP = new BcDLP('yt-dlp') // If its in your process path

const eventEmitter = bcDLP
Expand Down Expand Up @@ -65,11 +65,11 @@ Excecute yt-dlp and returns an [Readable Stream](https://nodejs.org/api/stream.h
The interface works just like the [EventEmitter](#EventEmitter).

```javascript
import BcDLP from 'bc-dlp'
import { BcDLP } from 'bc-dlp'
import * as fs from 'fs'
const bcDLP = new BcDLP('yt-dlp')

const { readableStream, execEventEmitter } = bcDLP.execStream([
const { readStream, execEventEmitter } = bcDLP.execStream([
'https://www.youtube.com/watch?v=aqz-KE-bpKQ',
'-f',
'best[ext=mp4]'
Expand Down

0 comments on commit c1ab19b

Please sign in to comment.