json-midi-encoder icon indicating copy to clipboard operation
json-midi-encoder copied to clipboard

Support for Node

Open wileymc opened this issue 1 year ago • 1 comments

This is an awesome library but would be great to have support to run this in a Node environment. I'm not sure what that implementation would look like but with a bit of direction I could take a shot at it.

wileymc avatar Feb 01 '24 19:02 wileymc

Hi @wileymc,

this has been requested many times. And so far I always said that it is no problem in theory but a little complex because the browser version uses a Web Worker.

But Worker threads are now supported in all maintained Node.js versions and they are quite similar. I think a first step would be to make the internally used helper packages broker-factory and worker-factory work with the worker implementation available in Node.js. Once that is done it is probably only a matter of publishing a version for Node.js.

chrisguttandin avatar Feb 06 '24 14:02 chrisguttandin