nwjs-j5-fix

1.0.6 • Public • Published

nwjs-j5-fix

This Node.js module enables the use of the Johnny-Five module inside NW.js v0.13 and above. It fixes issues with the process.stdin object of NW.js. As of version 0.13-rc2 of NW.js, the problem still exists.

This is a modularized version of Rick Waldron's code as seen in the Getting started with Johnny-Five and Node-Webkit tutorial.

Based on Rick's work, I have published an updated and simplified method to use Johnny-Five inside NW.js v0.13+. For more information, check out my tutorial on TangibleJS: Johnny-Five + NW.js = Kickass Physical Computing Environment.

Using it

To use it, you first need to install it inside your projet using npm. From the command-line, at the root of your project issue:

npm install nwjs-j5-fix

Then, simply add this line of code before requiring Johnny-Five:

nw.require("nwjs-j5-fix").fix();

That's it!

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i nwjs-j5-fix

      Weekly Downloads

      10

      Version

      1.0.6

      License

      MIT

      Unpacked Size

      2.58 kB

      Total Files

      3

      Last publish

      Collaborators

      • djipco