Skip to content

Commit

Permalink
Minor meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 10, 2017
1 parent 992c9c6 commit b792b3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
*.js text eol=lf
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = (target, opts) => {
}

if (!opts.wait) {
// xdg-open will block the process unless
// `xdg-open` will block the process unless
// stdio is ignored even if it's unref'd
cpOpts.stdio = 'ignore';
}
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ $ npm install --save opn
```js
const opn = require('opn');

// opens the image in the default image viewer
// Opens the image in the default image viewer
opn('unicorn.png').then(() => {
// image viewer closed
});

// opens the url in the default browser
// Opens the url in the default browser
opn('http://sindresorhus.com');

// specify the app to open in
// Specify the app to open in
opn('http://sindresorhus.com', {app: 'firefox'});

// specify app arguments
// Specify app arguments
opn('http://sindresorhus.com', {app: ['google chrome', '--incognito']});
```

Expand Down

0 comments on commit b792b3b

Please sign in to comment.