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

jsDump

Package Overview
Dependencies
Maintainers
0
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.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
57
increased by21.28%
Maintainers
0
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 cross-browser.

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

Analogs

  • inspect() from Node.js sys module
  • repr() from Narwhal’s util module
  • console._source_of() from Console.js

NPM

can be installed with: npm install jsDump and used in node with: var jsDump = require("jsDump"); jsDump.parse(foo);

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 27 Feb 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