debug-fd-deprecated
v1.0.1
Published
Fixes '`DEBUG_FD` is deprecated. Override `debug.log` if you want to use a different log function' error
Downloads
361
Readme
debug-fd-deprecated
This is a fix for deprecation warning (not its cause),
DEBUG_FD
is deprecated. Overridedebug.log
if you want to use a different log function
Which is produced on Node.js by debug
package v2.6.0 and its dependents, commonly ExpressJS and its middlewares.
Particularly useful for the users of JetBrains IntelliJ IDEA, PhpStorm, WebStorm.
Description
The package patches Node.js util.deprecate
in safe manner to keep it silent about DEBUG_FD
.
Use
debug-fd-deprecated
should be loaded once, before debug
or any other package that uses it:
'use strict';
require('debug-fd-deprecated');
...
const bodyParser = require('body-parser');