node.js how to use a minified library used in client side

Basically, I am encoding a wav file using libopus.js on the client side, now on the server side(node.js) I have to decode it using the same library, this is where I am getting lost, not sure how adapt the libopus.js for the server, to make things easier, it is present in minified form.

so what are the steps I have to follow to port a client side library to node.js.

I can't comment due to low reputation, the usual porting to node js usually means exposing the variable via exports instead of on the window, for example for the Opus which is defined in https://github.com/kazuki/opus.js-sample/blob/master/opus.js you'd do exports.opus = Opus; and then in node you'd have:

var opus = require('./libopus').Opus and you will have that object.

However, from a fast glance it seems that it works with buffers etc which I am not sure how they port from browser to node js but give it a try I guess.