UNPKG

mdict

Version:

node.js mdict (*.mdx, *.mdd) file reader

7 lines (6 loc) 198 B
var lzo1x = require(__dirname+'/lzo1x.js'); exports.decompress = function(buf) { var state = { inputBuffer: new Uint8Array(buf) }; var ret = lzo1x.decompress(state); return state.outputBuffer; }