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.
JSON.stringify()
. Doesn’t serialize functions and DOM nodes.inspect()
from Node.js sys modulerepr()
from Narwhal’s util moduleconsole._source_of()
from Console.js
npm install jsDump
Usage:
var jsDump = require("jsDump");
jsDump.parse({foo: 'bar', length: 0});
In the browser:
git submodule update --init
- open
tests/index.html
Or from command line:
$ narwhal tests/*_test.js
Use jQuery coding style. Basically, use tabs instead of spaces.