live-invalidate

0.0.2 • Public • Published

live-invalidate

Delete cached require modules to force re-evaluation.

NPM Version Linux Build Test Coverage

Install

npm i -S live-invalidate

Usage

const {invalidate} = require('live-invalidate')
 
const app = koa()
 
let customInvalidations =
  route.get(/\/api\/.*/, function *(next) {
    invalidate('models')
    yield next
  })
  
if (config.env === 'development') app.use(customInvalidations)

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i live-invalidate

Weekly Downloads

1

Version

0.0.2

License

SEE LICENSE IN ./docs/license.md

Last publish

Collaborators

  • vjpr