node-util icon indicating copy to clipboard operation
node-util copied to clipboard

[WIP] Sync features with Node 9

Open goto-bus-stop opened this issue 7 years ago • 6 comments

Still need to port:

  • [ ] callbackify
  • [ ] format
  • [x] inspect
  • [ ] isDeepStrictEqual

goto-bus-stop avatar Mar 07 '18 08:03 goto-bus-stop

The new inspect() function is significantly bigger which is unfortunate. Hopefully common-shakeify can usually remove it from browser builds.

goto-bus-stop avatar Mar 07 '18 09:03 goto-bus-stop

Think I'll split this up so we can get promisify out the door first :P not that many people really need the new format features, probably!

goto-bus-stop avatar Mar 07 '18 11:03 goto-bus-stop

How could I help get at least the util.inspect part of this available on npm? I'd like to use it in eemeli/yaml-playground. Brief testing would suggest that it mostly works, except for indentation depth with Map and Set objects.

eemeli avatar Feb 01 '19 13:02 eemeli

What's the status here?

BridgeAR avatar May 06 '19 18:05 BridgeAR

Ping @goto-bus-stop

BridgeAR avatar May 14 '19 12:05 BridgeAR

promisify/callbackify was landed separately, debuglog is in another PR. Maybe we can extract the inspect progress from this as a separate PR too, but it may be tricky to reconcile the current master with this PR and with the latest Node.js implementation. No work happened here since the last visible changes.

I can't commit enough time to finish inspect in the near future

goto-bus-stop avatar May 14 '19 12:05 goto-bus-stop