github Chinachu/Mirakurun v2.0.0-beta.0
Mirakurun 2.0.0 / Beta 0

latest releases: 3.9.0-rc.4, 3.9.0-rc.3, 3.9.0-rc.2...
8 years ago

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

Don't miss a new Mirakurun release

NewReleases is sending notifications on new releases.