1.0.1 • Published 4 years ago

echo-properties v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Echo Objects

I did this small npm package because I needed a way to display the not enumerable properties inside the objects and arrays prototypes or simply the "proto" connection in the same way is doing Chrome, for an app called RunJs.

It can be used in node environmen also for displaying inner properties of nested objects.

Usage

require('echo-properties');

const obj = {a:1};
// log is now a global function that prints in the console the result
log(obj) // => console.log({a:1} >{a:1, __proto__: {...}})

Or if you what you can import directly the function "echoProperties"

const echoProperties = require('echo-properties');

const obj = {a:1};
// It will return the object containing all the properties.
echoProperties(obj) // => {a:1, __proto__: {...}} 

Enjoy 🤙