Skip to content

Commit

Permalink
docs: switch to more modern example of importing
Browse files Browse the repository at this point in the history
  • Loading branch information
Richienb committed May 6, 2020
1 parent f0e281a commit 95829d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -46,7 +46,7 @@ npm i yargs@next

````javascript
#!/usr/bin/env node
const argv = require('yargs').argv
const {argv} = require('yargs')

if (argv.ships > 3 && argv.distance < 53.5) {
console.log('Plunder more riffiwobbles!')
Expand Down Expand Up @@ -137,4 +137,4 @@ Having problems? want to contribute? join our [community slack](http://devtoolsc
[slack-url]: http://devtoolscommunity.herokuapp.com
[type-definitions]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yargs
[coverage-image]: https://img.shields.io/nycrc/yargs/yargs
[coverage-url]: https://github.com/yargs/yargs/blob/master/.nycrc
[coverage-url]: https://github.com/yargs/yargs/blob/master/.nycrc

0 comments on commit 95829d4

Please sign in to comment.