Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsDump

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsDump

returns a string containing a human-readable representation of object

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
57
increased by21.28%
Maintainers
1
Weekly downloads
 
Created
Source

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

NPM

npm install jsDump

Usage:

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

Tests

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.

FAQs

Package last updated on 20 Aug 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc