I'm working on a library for node.js that is build primarily as a native module. As such, when people try to include it in node-webkit projects, they have to recompile it using `nw-gyp` instead of `node-gyp`. I know we can detect node-webkit specifically when our built code runs using something like this:

`try {
 isNodeWebkit = (typeof require('nw.gui') !== "undefined");
 } catch(e) {
 isNodeWebkit = false;
 }`

However, I would like to detect this inside of our install script (run by `npm install`). Alternatively, we look in our own `package.json`, but is there maybe a way to look at the root project's `package.json`? That way we could at least look at some property, maybe `engine` or something?