Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/popomore/fscache-stream
a passtrough stream caching buffer to file system
https://github.com/popomore/fscache-stream
Last synced: about 2 months ago
JSON representation
a passtrough stream caching buffer to file system
- Host: GitHub
- URL: https://github.com/popomore/fscache-stream
- Owner: popomore
- Created: 2014-04-28T12:00:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-28T15:24:19.000Z (over 10 years ago)
- Last Synced: 2024-10-16T05:21:08.922Z (3 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
Awesome Lists containing this project
README
# fscache-stream [![Build Status](https://travis-ci.org/popomore/fscache-stream.png?branch=master)](https://travis-ci.org/popomore/fscache-stream) [![Coverage Status](https://coveralls.io/repos/popomore/fscache-stream/badge.png?branch=master)](https://coveralls.io/r/popomore/fscache-stream?branch=master)
A passtrough stream caching buffer to file system
---
## Install
```
$ npm install fscache-stream -g
```## Usage
```
var http = require('http');
var fscache = require('fscache-stream');
var file = 'http://code.jquery.com/jquery-1.11.0.js';
http.get(file, function(req, res){
req
.pipe(fscache('jquery.js'))
.pipe(process.stdout);
});
```## LISENCE
Copyright (c) 2014 popomore. Licensed under the MIT license.