0.0.2 • Published 8 years ago

live-invalidate v0.0.2

Weekly downloads
4
License
SEE LICENSE IN ./...
Repository
-
Last release
8 years ago

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

0.0.2

8 years ago

0.0.1

9 years ago