I want to use node.js to parse data from a java script application back to the node.js server, I have accomplished this in a very rudimentary form and now I want to have the data turn on or off the GPIO pins on the Pi B+. I attempted doing that with this module: https://www.npmjs.com/package/pi-gpio a problem I ran into is that apparently it's file path is outdated and there isn't really any easy way around it. I was wondering if anyone knew of an ulterior way of interfacing with the GPIO pins in Node.js.
Use this module: https://www.npmjs.com/package/node-cmd
And use the gpio shell commands.
Run gpio -h on raspberry pi terminal to find syntax.