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

var_dump

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

var_dump

JS powfull dump!

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

var_dump

javaScript var ' powerful dump,不会陷入死循环 ##示例

var test = {
  a:'a',
  b:'b'
  }
test.c = test;
document.write(var_dump(test));

result:

image

##安装 nodejs

npm install var_dump

###前端

<script src='../var_dump.js'></script>

##使用 前端(browser)

可以遍历 window 对象(除了IE);

document.write(var_dump( //变量 ));

后端(nodejs):

var http = require('http');
var var_dump = require('var_dump.js');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/html'});
  var_dump.init(res);//初始代,只需一次
  res.write(var_dump(global));
  res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');

demo:

http://godmod.cn/var_dump

FAQs

Package last updated on 13 Jul 2015

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