https://github.com/webfreak001/hasdata
Cross platform check if a file or stdin has data available for read
https://github.com/webfreak001/hasdata
Last synced: 5 months ago
JSON representation
Cross platform check if a file or stdin has data available for read
- Host: GitHub
- URL: https://github.com/webfreak001/hasdata
- Owner: WebFreak001
- License: unlicense
- Created: 2017-01-21T12:25:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-21T12:36:47.000Z (over 9 years ago)
- Last Synced: 2025-02-28T14:48:10.083Z (over 1 year ago)
- Language: D
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hasdata
```d
import hasdata;
if (stdin.hasData) // works with console input, pipes & files
writeln("Has Data!");
```