Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianstormtaylor/read-file-stdin
Read from a file, falling back to stdin.
https://github.com/ianstormtaylor/read-file-stdin
cli javascript stdin utility
Last synced: 10 days ago
JSON representation
Read from a file, falling back to stdin.
- Host: GitHub
- URL: https://github.com/ianstormtaylor/read-file-stdin
- Owner: ianstormtaylor
- Created: 2013-12-19T07:18:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-21T20:16:21.000Z (almost 9 years ago)
- Last Synced: 2024-10-12T02:52:58.336Z (25 days ago)
- Topics: cli, javascript, stdin, utility
- Language: JavaScript
- Size: 12.7 KB
- Stars: 14
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# read-file-stdin
Read from a file, falling back to stdin.
## Installation
$ npm install read-file-stdin
## API
### read ([file], callback)
Read from a `file`, falling back to stdin, and `callback(err, buffer)`.
## License
MIT