node-curlnsave
Node module to curl a remote url and cache response locally
Usage
var curlnsave = ; var curl = curlnsave; var uri = 'http://www.example.com'; // first time this call will download and cache the url & // subsequent calls will use the cached copy. // result { name: 'local name', data: 'data body', isFromCache: true|false} curl;
var curlnsave = ; var curl = curlnsave; /** * options object used by [request node module](https://www.npmjs.com/package/request) */ var options = url: 'http://www.example.com' ; // first time this call will download and cache the url & // subsequent calls will use the cached copy. // result { name: 'local name', data: 'data body', isFromCache: true|false} curl