From 66d3bc74a49202bd980a77486febcb635be283dc Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 12 Sep 2019 02:46:42 +0700 Subject: [PATCH] Meta tweaks --- package.json | 6 +++--- readme.md | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 789803f..bbc9b48 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/readme.md b/readme.md index b83feb8..d9d1dd1 100644 --- a/readme.md +++ b/readme.md @@ -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? @@ -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']}); })(); ```