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

xml-beautifier

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-beautifier - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

src/index.js

6

dist/index.js
'use strict';
var repeat = require('repeat-string');
var splitOnTags = function splitOnTags(str) {

@@ -33,3 +35,3 @@ return str.split(/(<\/?[^>]+>)/g).filter(function (line) {

var line = indent.repeat(depth) + item;
var line = repeat(indent, depth) + item;

@@ -42,2 +44,2 @@ if (isOpeningTag(item)) {

}).join('\n');
};
};
{
"name": "xml-beautifier",
"version": "0.2.0",
"version": "0.3.0",
"title": "XML Beautifier",

@@ -8,5 +8,6 @@ "description": "Beautifies XML documents by putting each tag and text node on their own line and correctly indents everything",

"scripts": {
"build": "babel index.js --out-file dist/index.js --presets es2015",
"build": "babel src --out-dir dist --presets es2015",
"prepublish": "npm run build",
"test": "node test.js"
"pretest": "npm run prepublish",
"test": "node dist/test/test.js"
},

@@ -17,5 +18,2 @@ "repository": {

},
"engines": {
"node": ">=4.0.0"
},
"author": "Jonathan Persson <persson.jonathan@gmail.com>",

@@ -27,3 +25,6 @@ "license": "MIT",

"tape": "^4.2.2"
},
"dependencies": {
"repeat-string": "^1.5.2"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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