Automattic / Automattic/util-inspect

Potential WIP replacement

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
23
Forks
15
PR merge metrics
No merged PRs in 30d

Description

I decided to start working on a reimplementation of this based on the most recent Node: https://gist.github.com/isiahmeadows/829cfa16da8dc4688c18dad378e97df6

It's currently untested, but I plan to eventually port it with its tests, so I can ensure it actually works. If you would like to take that over and do it yourself, feel free, but that's what I've got so far.

Notes:

- It supports most everything Node does, provided the engine supports the relevant stuff.
- It depends on `is-arguments`, `is-regex`, and `is-callable`.
- I removed all the ES6 stuff and re-implemented what I needed, so it should work on any machine that supports ES5.
- I made a few alterations to optimize it a little, usually when it involved very suboptimal FP stuff that might not even exist in ES3 environments.
- The test bed project I had uses an ESLint config, and where I initially worked on it locally, it auto-formatted it a bit differently than what Node core uses.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the linked gist, the test-bed project's tests, and its ESLint configuration; compare the reimplementation with this repository and Node's util.inspect behavior. Done means the replacement is ported here, tests cover the supported Node behavior, and it remains compatible with the stated ES5 browser target.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript, node.js
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.