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

jsontoxml

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsontoxml - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

14

jsontoxml.js

@@ -124,5 +124,3 @@ //copyright Ryan Day 2010 <http://ryanday.org>, Joscha Feth 2013 <http://www.feth.com> [MIT Licensed]

var Buffer = this.Buffer || function Buffer () {};
if(typeof obj == 'string' || obj instanceof Buffer) {
if(typeof obj == 'string' || isBuffer(obj)) {
try{

@@ -159,3 +157,3 @@ obj = JSON.parse(obj.toString());

(options.prettyPrint && docType ? '\n' : ''),
docType,
docType,
process_to_xml(obj,options)

@@ -185,3 +183,9 @@ ];

function isBuffer(b){
try{
return (b instanceof Buffer);
} catch(e) {
return false;
}
}
{
"name":"jsontoxml",
"version":"0.0.5",
"version":"0.0.6",
"description":"This is a library designed to render js objects as xml. Its not made to parse or otherwise edit existing xml/html structures.",

@@ -5,0 +5,0 @@ "homepage":"http://github.com/soldair/node-jsontoxml",

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