node-lru-reader based on LRU file reader
Installation
npm install node-lru-reader --save
Usage
var opts = staticPath: 'static path' ext: 'file extname' enableCache: true //if true or NODE_ENV === 'production', the cache enabled. notFound: 'when path is unsafe, it will be work.' cacheOpts: //see[https://github.com/isaacs/node-lru-cache] ; // the default cache optionsvar defCacheOpts = max: 1000 { return keylength; } maxAge: 1000 * 60 * 60 * 24; var reader = opts; var { //todo stuff} reader;