8000 An option to respect Object.inspect() · Issue #28 · cloudhead/eyes.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
An option to respect Object.inspect() #28
Open
@mildsunrise

Description

@mildsunrise

The original util.inspect always looks wether an object has the
inspect property defined as a function. If it is, then it calls it and
prints the result instead of the literal representation.

Classes like Buffer have inspect defined so when you do:

console.log( { some: Buffer(2) } )

you get:

{ some: <Buffer d0 c7> }

I think eyes should respect this, or at least have an option to
do so. The style applied should be the other style, since what
inspect returns is often not a literal representation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0