Martin Giger

Results 73 comments of Martin Giger

That's exactly how twitch does it. https://clips.twitch.tv/api/v2/clips/DepressedAdventurousPeanutKAPOW contains the VOD ID and `content_offset_seconds` value.

I guess that information would also be in https://dev.twitch.tv/docs/v5/reference/clips#get-clip (offset is available as `vod.offset`)

Sadly helix will not carry the offset.

I haven't worked on this at all. What needs to be done is primarily actually detecting when a clip should be loaded (or add a special param for it) and...

The length option is working as expected for me. It will always return all message chunks that are in the given time range, which may return a few extra messages....

Thank you for that. I've found a bug in the logic that decides if it should load another fragment. This should be fixed in 6.0.1

You can invoke it like any other module. you can load the main module that does the whole loading with `require("twitch-chatlog/lib")`. All exported functions have docblocks, so you should be...

Made a little test case for peace of mind: https://jsperf.com/array-cloning-freak/1 The ranking is as follows (checked in Chromium and Firefox, so we have V8 and SpiderMonkey): 1. `Array.prototype.slice` 2. `Reflect.construct(Array`...

This should actually be a rule where the user can choose their preferred method.

Alternatives would also be `Array.from({ length: size }, (u, i) => map(i));` or similar.