https://github.com/danieldk/stdinout
Small wrapper for opening a stream as a file or stdin/stdout.
https://github.com/danieldk/stdinout
Last synced: 10 months ago
JSON representation
Small wrapper for opening a stream as a file or stdin/stdout.
- Host: GitHub
- URL: https://github.com/danieldk/stdinout
- Owner: danieldk
- License: apache-2.0
- Created: 2016-11-03T11:22:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T22:39:29.000Z (over 4 years ago)
- Last Synced: 2025-01-02T01:49:41.816Z (12 months ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Introduction
A pattern that often occurs in UNIX utilities is:
* You want to read from a file when a filename argument is provided,
otherwise from stdin.
* You want to write to a file when a filename argument is provided,
otherwise to stdout.
This is a small crate that accommodates that pattern.
**Note:** This package is still new, its API will change.
## Installation
This package can be used with Cargo:
[dependencies]
stdinout = 0.1