asciinema.player.asciicast as npm module
load-asciicast
- Normalize asciicast formats
v0
,v1
,v2
- Initialize frames into a asciinema
Screen
- Uses the same abstractions as asciinema-player
Install
npm install load-asciicast
Usage
;;; const read = ; async { const data = Stringawait ; // Optional; // if width, height, and idle are not specified, they will be taken from data const options = width: 80 // Screencast width height: 25 // Screencast height idle: 25 // Idle time limit in seconds fps: 30 // Frames per second limit, see https://github.com/marionebl/svg-term/issues/13 ; const asciicast = await ; // => {...}};
Development
Prerequisites
- Java 8
- Node 8
- leiningen
git clone https://github.com/marionebl/load-asciicast.gitcd load-asciicastgit submodule update --init --recursive # init asciinema-player, vt lein cljsbuild auto # Other terminal window npm installnpm start