Nathan Rajlich

Results 167 comments of Nathan Rajlich

I decorate function objects with properties. See [NodObjC](https://github.com/TooTallNate/NodObjC), [node-ctypes](https://github.com/TooTallNate/node-ctypes), [node-function-class](https://github.com/TooTallNate/node-function-class), for some examples.

Well like I said I'm open to a change here, so I want other maintainers opinions as well. Your proposal is a breaking change and we just did v3, but...

To create a `debug` instance that is always enabled, do this: ```js const debug = require('debug')('my-namespace'); debug.enabled = true; debug('some stuff'); ```

Huge 👍 to this proposal, basically as-is. Env based configuration is the only one that really makes sense to me for this module.

@Qix- Very interesting! I did [something similar](https://github.com/TooTallNate/debug-time/blob/master/index.js) (though a lot more basic) using a custom formatter. That said, my initial question is if this is something that could live as...

Let's get this merged @Qix-. Needs Readme docs and there appears to be a bug where the marked sections fall back to a regular debug() call when stdout is not...

I'm having this same issue and can't figure it out.

FWIW it was nice to be able to use a specific version of node-fetch with this module to help identify whether a bug came from this module vs. node-fetch itself...

We should just drop the `require('@zeit/fetch')()` implicit syntax IMO.

It's possible to call `socket.deref()` or something like that as well to have an open socket that doesn't keep the event loop running. Perhaps they're using that feature (I believe...