UNPKG

@joshrtay/decache

Version:

decache (Delete Cache) lets you delete modules from node.js require() cache; useful for dev servers

17 lines (12 loc) 255 B
var hello = require('./othermodule.js') // require a second ("child") module var runcount = false var get = function () { return runcount } var set = function () { runcount = runcount + 1 return runcount } module.exports = { get, set, hello }