UNPKG

node-hag

Version:

Node HTML Asset Generator (HAG) - converts HTML and CSS templates into rendered Image assets, and can also produce Text and JSON assets.

29 lines (22 loc) 357 B
var cache = {} function store (key, value) { cache[key] = value } function read (key) { return cache[key] } function remove (key) { var item = cache[key] delete cache[key] return item } function list () { return Object.keys(cache) } var instance = { store: store, read: read, remove: remove, list: list } module.exports = instance