We'll take the stylus plugin as an exemple.
To make our plugin to work with node, we are going to use Christopher's js-transpiler. It allows to develop a shell script that will work independtly on both node and the jvm. You can call a shell script from the cli like this:
node my-shell.js file.extension '{"flag":true}'
You can use this to debug your processor until it works!