https://github.com/zephyrpersonal/cacheable-fs-readstream
cache a fs readStream
https://github.com/zephyrpersonal/cacheable-fs-readstream
Last synced: 4 days ago
JSON representation
cache a fs readStream
- Host: GitHub
- URL: https://github.com/zephyrpersonal/cacheable-fs-readstream
- Owner: zephyrpersonal
- Created: 2018-04-15T13:22:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-15T13:30:18.000Z (about 8 years ago)
- Last Synced: 2025-03-05T01:35:37.895Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cacheable-Fs-Stream
## Usage
```js
const createCacheableStream = require('cacheable-fs-stream')
const getCacheableFileStream = createCacheableStream()
getCacheableFileStream('path/to/your/file', e => {
console.error(e)
// handle error
}).pipe(writableStream)
```
## TODO
[ ] add multiple stores support