Skip to content

Commit

Permalink
rename .nodeIntegration to .node, keep an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Mar 4, 2017
1 parent e6a8886 commit cee7635
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Create a writable stream around a newly spawned `electron` which forwards writte
Options:

- `show`: Show the electron window. Defaults to `false`.
- `nodeIntegration`: Enable node integration. Defaults to `false`.
- `node`: Enable node integration. Defaults to `false`.

### electron#stdout
### electron#stderr
Expand Down
5 changes: 3 additions & 2 deletions bin/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ var electron = require('..');
var minimist = require('minimist');

var argv = minimist(process.argv.slice(2), {
boolean: 'node-integration',
boolean: 'node',
alias: {
nodeIntegration: 'node-integration'
nodeIntegration: 'node',
'node-integration': 'node'
}
});
var browser = electron(argv);
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function Electron(opts){
Duplex.call(this);

this.opts = opts || {};
this.opts.nodeIntegration = this.opts.node;
this.source = new PassThrough();
this.ps = null;
this.server = null;
Expand Down

0 comments on commit cee7635

Please sign in to comment.