I recently ran into the use case where I needed to change the location of the bridge.js file (I am using the packager nexe which treats __dirname differently to other environments).
I have made a change to node-phantom-simple to allow manually declaring the bridge.js path. By default, it takes the same behaviour so this is a non-breaking change.
I understand my use-case is specific, and the problem I had is not caused by a bug in node-phantom-simple (rather a bug in nexe), but I thought I would submit this pull request and you can review whether it's something you would like to add regardless.
I recently ran into the use case where I needed to change the location of the bridge.js file (I am using the packager nexe which treats __dirname differently to other environments).
I have made a change to node-phantom-simple to allow manually declaring the bridge.js path. By default, it takes the same behaviour so this is a non-breaking change.
I understand my use-case is specific, and the problem I had is not caused by a bug in node-phantom-simple (rather a bug in nexe), but I thought I would submit this pull request and you can review whether it's something you would like to add regardless.