svg-term
Version:
Share terminal sessions via SVG and CSS
18 lines • 548 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const load_asciicast_1 = require("load-asciicast");
;
function loadCast(input, options = {}) {
if (!input) {
throw new TypeError(`svg-term.reder: missing input`);
}
const { width, height, idle, fps } = options;
return load_asciicast_1.load(input, {
width,
height: height ? height + 1 : undefined,
idle: idle ? idle / 1000 : undefined,
fps
});
}
exports.loadCast = loadCast;
//# sourceMappingURL=load-cast.js.map