Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 11, 2019
1 parent 12333bf commit 66d3bc7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -50,9 +50,9 @@
"is-wsl": "^2.1.0"
},
"devDependencies": {
"@types/node": "^11.13.6",
"ava": "^1.4.0",
"tsd": "^0.7.2",
"@types/node": "^12.7.5",
"ava": "^2.3.0",
"tsd": "^0.7.4",
"xo": "^0.24.0"
}
}
12 changes: 6 additions & 6 deletions readme.md
Expand Up @@ -4,7 +4,7 @@
If need this for Electron, use [`shell.openItem()`](https://electronjs.org/docs/api/shell#shellopenitemfullpath) instead.

Note: The original [`open` package](https://github.com/pwnall/node-open) was recently deprecated in favor of this package, and we got the name, so this package is now named `open` instead of `opn`. If you're upgrading from the original `open` package (`open@0.0.5` or lower), keep in mind that the API is different.
Note: The original [`open` package](https://github.com/pwnall/node-open) was previously deprecated in favor of this package, and we got the name, so this package is now named `open` instead of `opn`. If you're upgrading from the original `open` package (`open@0.0.5` or lower), keep in mind that the API is different.

#### Why?

Expand All @@ -29,17 +29,17 @@ $ npm install open
const open = require('open');

(async () => {
// Opens the image in the default image viewer and waits for the opened app to quit
await open('unicorn.png', {wait: true});
// Opens the image in the default image viewer and waits for the opened app to quit.
await open('unicorn.png', {wait: true});
console.log('The image viewer app quit');

// Opens the URL in the default browser
// Opens the URL in the default browser.
await open('https://sindresorhus.com');

// Opens the URL in a specified browser
// Opens the URL in a specified browser.
await open('https://sindresorhus.com', {app: 'firefox'});

// Specify app arguments
// Specify app arguments.
await open('https://sindresorhus.com', {app: ['google chrome', '--incognito']});
})();
```
Expand Down

0 comments on commit 66d3bc7

Please sign in to comment.