Koa: Turning off 'koa deprecated' warnings?

Created on 3 Aug 2016  路  4Comments  路  Source: koajs/koa

Is it possible to turn off koa deprecated Support for generators will been removed in v3 warnings for koa v2.x? It somewhat clustered the terminal window, thanks.

Most helpful comment

Koa use depd npm module to display deprecated message under the hood, so you can set NO_DEPRECATION=koa to disable it.

All 4 comments

why not just convert middlewares via koa-convert?

That could do the trick but would rather having cleaner code with fewer temporary fillers.

Koa use depd npm module to display deprecated message under the hood, so you can set NO_DEPRECATION=koa to disable it.

Sounds good, thanks for the tip!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rainesinternationaldev picture rainesinternationaldev  路  5Comments

felixfbecker picture felixfbecker  路  5Comments

koalex picture koalex  路  3Comments

ilkkao picture ilkkao  路  4Comments

wlingke picture wlingke  路  3Comments