Skip to content

djadmin/jsDump

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsDump

jsDump.parse(object) returns a string containing a human-readable representation of object.

jsDump is like Mozilla’s toSource(), but it works in all modern browsers.

jsDump was originally developed by Ariel Flesler. This fork based on version 1.0.0.

Similar Stuff

  • JSON.stringify(). Doesn’t serialize functions and DOM nodes.
  • inspect() from Node.js sys module
  • repr() from Narwhal’s util module
  • console._source_of() from Console.js

BOWER

bower install jsdump
npm install jsDump

Usage:

var jsDump = require("jsDump");
jsDump.parse({foo: 'bar', length: 0});

In the browser:

  1. git submodule update --init
  2. open tests/index.html

Or from command line:

$ narwhal tests/*_test.js

Contribution

Use jQuery coding style. Basically, use tabs instead of spaces.

About

Fork of jsDump by Ariel Flesler

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 78.1%
  • HTML 21.9%