You'll probably want to get the Buffer of the Aseprite file in whatever way you feel like. For the example, we'll just use fs.readFileSync(). But you can get it from a network request, etc. After ...
import CanvasScrollClip from "canvas-scroll-clip"; new CanvasScrollClip(document.querySelector('.element'), { framePath: "{url_of_first_frame_in_a_sequence ...