Lazy-cache

lazy-cache

Cache requires to be lazy-loaded when needed.

lazy-cache uses native, plain-vanilla, tried and true javascript getters to call node's require() system for faster and safer code. (~1second to 50milliseconds)

Get it: npm install lazy-cache

Sample usage:

1
2
3
const lazyOS = require("lazy-cache")(require)('os');
console.log(typeof lazyOS)
console.log(lazyOS().arch())

GIF FTW!

lazy-cache.gif

Suggest a module

Comments