0.0.5 • Published 9 months ago

dump-props v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

dumpProps

This is a tool for dumping js object properties. During the debugging process, I often want to know what properties or methods an object has. The dump-props tool allows you to quickly know all the information about the object, including visible, invisible and Symbol.

Install

npm install dump-props -g

Usage

  1. Execute in the console
dumpProps  
  1. Paste the code (Ctrl + V) in the console of the developer tool or the debug console and execute it
  2. If you want to see the object, you can directly call dumpProps

Alt text

Explain

/**
 * show all properties of target
 * @param {*} target you want to dump
 * @param {*} depth dump depth, default -1, means dump all
 * @returns properties
 */
declare function dumpProps(target: any, depth:number): object;