Socket
Socket
Sign inDemoInstall

json2tree

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

18

lib/json2tree.js

@@ -20,8 +20,16 @@ var fs = require('fs')

} else {
if(opts && opts.linkPattern)
this_line = util.format(li,
util.format(opts.linkPattern, json.link),
json.name);
else
// if(opts && opts.fn)
// json.link = opts.fn(json.link);
if(opts) {
if(opts.fn)
this_line = util.format(li,
opts.fn(json.link),
json.name);
else if(opts.linkPattern)
this_line = util.format(li,
util.format(opts.linkPattern, json.link),
json.name);
} else {
this_line = util.format(li, json.link, json.name);
}
return this_line;

@@ -28,0 +36,0 @@ }

{
"name": "json2tree",
"description": "Json to Tree Utility",
"version": "0.0.4",
"version": "0.0.5",
"author": {

@@ -6,0 +6,0 @@ "name": "Simon Su",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc