UNPKG

apicacheable

Version:

Effortless api response caching for Express/Node using plain-english durations

10 lines (8 loc) 172 B
function isKoa(ctx) { return Boolean( ctx && typeof ctx === 'object' && ctx.request && ctx.response && ctx.req && ctx.res ) } module.exports = { isKoa: isKoa, }