Skip to content

Mirakurun 2.0.0 / Beta 0

Compare
Choose a tag to compare
@kanreisa kanreisa released this 14 Sep 11:24
· 663 commits to master since this release

Implemented:

  • Client: (see below example)
import MirakurunClient from "mirakurun";
const client = new MirakurunClient();

// get service list
client.getServices().then(res => console.log(res));

// get channel stream and save to file
const out = fs.createWriteStream("out.ts");
client.getChannelStream("GR", "16").then(ts => ts.pipe(out));

// get service logo and save to file
client.getLogoImage(3239123610).then(buffer => fs.writeFileSync("mx2.png", buffer));

Improved:

  • performance

Package:

# server
npm install mirakurun@latest -g --unsafe --production
# client
npm install mirakurun@latest --save