JSDump
JSDump is a tool to dump out the information of own and inherited properties from an object, object prototype, and object instance.
JSDump helps people get the information of a JavaScript object at runtime as much as possible.
JSDump requires Node.js version 10.0.0 and up.
JSDump-Web is a version of JSDump specified for web browsers. To access JSDump-Web repository for the details.
Documentation
To see JSDump documentation
Installation
$ npm install jsdump
Usage examples
const jsdump = ; // prints this message. jsdump; // returns an object that includes dumped out content from class URL. jsdump; // prints the information of class URL to the console. jsdump; // prints the serialized information of class URL to the console. jsdump; // writes the information of class URL to a txt file in current directory. jsdump; /* writes the serialized information of class URL to a txt file in current directory. */ jsdump; /* prints the information of entries type with 'function' from class URL to the console. */ jsdump; /* prints the serialized information of entries type with 'function' from class URL to the console. */ jsdump; /* writes the information of entries type with 'function' from class URL to txt file. */ jsdump; /* writes the serialized information of entries type with 'function' from class URL to txt file. */ jsdump; // prints constructor source of class URL to the console. jsdump; // prints toString() source of class URL to the console. jsdump; /* writes the constructor source of class URL to a txt file in current directory. */ jsdump; /* writes toString() source of class URL to a txt file in current directory. */ jsdump;
To see JSDump APIs
Tests
Runs the following commands from your project.
$ cd ./node_modules/jsdump
$ npm test
Enhancing Code Playgrounds
Using JSDump with StackBlitz, CodeSandBox, JS Bin, and other code playgrounds automatically dumping out object information to the playground console.
License
MIT