Skip to content

Commit

Permalink
docs: use open instead of opn in the README (#750)
Browse files Browse the repository at this point in the history
The node module `opn` has been renamed to `open`, so I've changed the example to reflect that.
  • Loading branch information
tashian authored and JustinBeckwith committed Jul 19, 2019
1 parent 90c563f commit 131489e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Let's take a look at a complete example.
const {OAuth2Client} = require('google-auth-library');
const http = require('http');
const url = require('url');
const opn = require('opn');
const open = require('open');
const destroyer = require('server-destroy');

// Download your OAuth2 configuration from the Google
Expand Down Expand Up @@ -158,7 +158,7 @@ function getAuthenticatedClient() {
})
.listen(3000, () => {
// open the browser to the authorize url to start the workflow
opn(authorizeUrl, {wait: false}).then(cp => cp.unref());
open(authorizeUrl, {wait: false}).then(cp => cp.unref());
});
destroyer(server);
});
Expand Down

0 comments on commit 131489e

Please sign in to comment.