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

/live-invalidate/

    Package Sidebar

    Install

    npm i live-invalidate

    Weekly Downloads

    2

    Version

    0.0.2

    License

    SEE LICENSE IN ./docs/license.md

    Last publish

    Collaborators

    • vjpr