Description

Cross platform check if a file or stdin has data available for read

Package Information

Version1.1.0 (2017-Jan-21)
Repositoryhttps://github.com/WebFreak001/hasdata
Licensepublic domain
Registered byWebFreak
Dependenciesnone

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

hasdata

import hasdata;

if (stdin.hasData) // works with console input, pipes & files
	writeln("Has Data!");

Available versions

1.1.0 1.0.0 ~master