console-advanced
v1.0.7
Published
Advanced Console adds new methods for inspecting objects.
Downloads
19
Maintainers
Readme
Console Advanced
Console Advanced adds new methods to the console for inspecting objects.
- filter
- methods
- proto
- console.values
Syntax
console.[method](object);
orconsole.[method](name, object)
where name is an optional string.
Methods
console.filter
console.filter
logs all public object keys and ignores any private keys.
console.methods
console.methods
logs all methods on an object as a string.
console.values
console.values
logs all values on an object that are not functions.
console.proto
console.values
logs all methods on the prototype.
Installation
From the command line:
npm install console-advanced
To save as a dependency:
- Production:
npm install console-advanced --save
- Development:
npm install console-advanced -- save--dev