A tutorial with examples of various access and display types can be seen at crotwell.github.io/seisplotjs. Also see the wiki. Install with npm i --save seisplotjs.
Full documentation is available on the official website: https://req.cool. The sample code above is good for quick testing purposes, which use DevMode() to see request details, and send requests using ...