npm-pkginfo
Lightweight version of npm-registry-client.get() that supports custom cache stores.
Motivation
I wrote this module because npm-registry-client
was missing some features and had others which I didn't need:
- it didn't allow custom cache stores
- event though it could load the package info from the cache it did a background update after that
Usage
var Client = client; // note: the memory store is only for testing / examples// in production you should either use the fsStore (see commented lines below)// or another custom storeclient = cacheStore: ; // Uncomment below to use the fs cache store// client = new Client({// cacheDir: __dirname + '/cache'// }); // fetch the request module from NPMclient;
For advanced usage, read the tests.
LICENSE
MIT