An open API service indexing awesome lists of open source software.

https://github.com/tanmaypatil105/qstdin

💲: a simple interface for querying stdin
https://github.com/tanmaypatil105/qstdin

rust rust-library stdin

Last synced: 7 months ago
JSON representation

💲: a simple interface for querying stdin

Awesome Lists containing this project

README

          

## qstdin

a simple interface for querying stdin

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

### Install

```console
$ cargo add qstdin
```

### Testing

```console
$ cargo run --example qstdin
input? true
file? false
directory? false
```

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

```console
$ cargo run --example qstdin < src
input? false
file? false
directory? true
```