running javascript plugins in node

I'm not sure if this is possible without some serious tweaking but is it possible to run javascript plugins server side with node...

more specifically

I would like to run the dymo javascript sdk from node (the printer is attached to the server)

that way any device can print from the server.

I have tried using https://github.com/tojocky/node-printer as a workaround however it doesnt work in my situation (works with my laserjet though)

I have tried just requiring the file that failed miserably.

if this is possible can you just point me in the right direction I have been searching the google and even been corresponding with dymo developers however I havent gotten much help from them.

so the simplest way to put it: Can you run clientside javascript plugins from server side? if not is there a way to write a middleware that will act as a bridge?

here is the plugin file(before I modify it more): http://irwinproject.com/jss/Dymo.js

its a bunch of craziness. I am trying to modify it to work as a module

UPDATE: I have gotten most of the functions running properly however I have hit a bit of a snag their sdk requires active x which I dont understand because I'm on a mac and it works

can someone explain to me how active x can function client side on a mac? (i thought that was windows only) and also is there anyway to implement the same framework(activex or other) through node

if I understand this correctly active x is used as an abstraction layer between javascript and hardware

You have to return your object or functions with module.exports, also try to verify you are requiring your file with . so node knows is a local module.

Check this SO post with a highly upvoted answer : What is the purpose of Node.js module.exports and how do you use it?

module.exports is the object that's actually returned as the result of a require call.

The exports variable is initially set to that same object (i.e. it's a shorthand "alias"), so in the module code you would usually write something like this....