m3u8stream
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -25,4 +25,8 @@ /// <reference types="node" /> | ||
} | ||
interface m3u8stream { | ||
(playlistURL: string, options?: m3u8stream.Options): Stream; | ||
parseTimestamp(time: number | string): number; | ||
} | ||
} | ||
declare let m3u8stream: (playlistURL: string, options?: m3u8stream.Options) => m3u8stream.Stream; | ||
declare let m3u8stream: m3u8stream.m3u8stream; | ||
export = m3u8stream; |
@@ -16,3 +16,3 @@ "use strict"; | ||
}; | ||
let m3u8stream = (playlistURL, options = {}) => { | ||
let m3u8stream = ((playlistURL, options = {}) => { | ||
const stream = new stream_1.PassThrough(); | ||
@@ -179,4 +179,5 @@ const chunkReadahead = options.chunkReadahead || 3; | ||
return stream; | ||
}; | ||
}); | ||
m3u8stream.parseTimestamp = parse_time_1.humanStr; | ||
module.exports = m3u8stream; | ||
//# sourceMappingURL=index.js.map |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"repository": { | ||
@@ -16,0 +16,0 @@ "type": "git", |
@@ -56,2 +56,10 @@ # node-m3u8stream | ||
### m3u8stream.parseTimestamp(time) | ||
Converts human friendly time to milliseconds. Supports the format | ||
00:00:00.000 for hours, minutes, seconds, and milliseconds respectively. | ||
And 0ms, 0s, 0m, 0h, and together 1m1s. | ||
* `time` - A string (or number) giving the user-readable input data | ||
### Limitations | ||
@@ -58,0 +66,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48387
697
82