debug-fd-deprecated

1.0.1 • Public • Published

debug-fd-deprecated

This is a fix for deprecation warning (not its cause),

DEBUG_FD is deprecated. Override debug.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');

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i debug-fd-deprecated

      Weekly Downloads

      44

      Version

      1.0.1

      License

      MIT

      Last publish

      Collaborators

      • ex-machine