Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 15, 2019
1 parent 7ddb55c commit 007c561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -19,7 +19,7 @@ const getStdin = require('get-stdin');
(async () => {
console.log(await getStdin());
//=> 'unicorns'
})
})();
```

```
Expand Down
7 changes: 4 additions & 3 deletions test-real.js
@@ -1,6 +1,7 @@
'use strict';
const getStdin = require('.');

getStdin().then(data => {
process.exit(data ? 0 : 1); // eslint-disable-line unicorn/no-process-exit
});
(async () => {
const stdin = await getStdin();
process.exit(stdin ? 0 : 1); // eslint-disable-line unicorn/no-process-exit
})();

0 comments on commit 007c561

Please sign in to comment.