npm i drek-decoder
node cli.js convert ./IMG.DRK -o ./img.png
var Decoder = require('drek-decoder');
Decoder.readFile('./IMG.DRK')
.then(img => {
// Export the first frame
let selected_frame = 0;
let canvas = img.frames[selected_frame].generateImageData();
Decoder.writePng(canvas, './img.png').then(() => {
console.log("File saved");
});
})
.catch(error => console.error(error.message))
;