2 releases

Uses old Rust 2015

0.1.1 May 8, 2024
0.1.0 May 7, 2024

#17 in #input-stream

27 downloads per month

GPL-3.0-or-later

14KB

qstdin

a simple interface for querying stdin

This assumes that you have called atty::is(Stream::Stdio) before calling qstdin::is(Stdin::*)

Install

$ cargo add qstdin

Testing

$ cargo run --example qstdin
input? true
file? false
directory? false
$ cargo run --example qstdin < Cargo.toml
input? false
file? true
directory? false
$ cargo run --example qstdin < src
input? false
file? false
directory? true

lib.rs:

qstdin

qstdin is a simple interface for querying stdin

No runtime deps