Skip to content

Commit

Permalink
fix(docs): fix some typos and year in readme and also updates test co…
Browse files Browse the repository at this point in the history
…verage
  • Loading branch information
nurrony committed Jan 16, 2025
1 parent c683a9b commit ed9534e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ import HLSDownloader from 'hlsdownloader';

const options = {
playlistURL: 'http://example.com/path/to/your/playlist.m3u8', // change it
destination: '/tmp', // change it (optional: default '')
concurrency: 10, // change it (optional: default = 1),
overwrite: true, // change it (optional: default = false)
// (optional: default = null
destination: '/tmp', // (optional: default '')
concurrency: 10, // (optional: default = 1),
overwrite: true, // (optional: default = false)
// (optional: default = null)
onData: function (data) {
console.log(data); // {url: "<url-just-downloaded>", totalItems: "<total-items-to-download>", path: "<absolute-path-of-download-loation>"}
},
// (optional: default = null
// (optional: default = null)
onError: function (error) {
console.log(error); // { url: "<URLofItem>", name: "<nameOfError>", message: "human readable message of error" }
},
Expand Down

0 comments on commit ed9534e

Please sign in to comment.