New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xml-utils

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-utils - npm Package Compare versions

Comparing version 1.3.0-0 to 1.3.0

remove-comments.js

4

index.js

@@ -6,2 +6,3 @@ const getAttribute = require("./get-attribute");

const findTagsByPath = require("./find-tags-by-path");
const removeComments = require("./remove-comments");

@@ -13,3 +14,4 @@ module.exports = {

findTagByPath,
findTagsByPath
findTagsByPath,
removeComments
};
{
"name": "xml-utils",
"version": "1.3.0-0",
"version": "1.3.0",
"description": "Parse XML without Blowing Up Your Bundle Size",

@@ -17,3 +17,4 @@ "main": "index.js",

"index-of-match.js",
"index-of-match-end.js"
"index-of-match-end.js",
"remove-comments.js"
],

@@ -20,0 +21,0 @@ "scripts": {

@@ -95,3 +95,14 @@ # xml-utils

## remove comments
```javascript
const removeComments = require("xml-utils/remove-comments");
const xml = `<list>
<!--<A/>-->
<B/>
</list>`;
removeComments(xml);
"<list>\n \n<B/><list>";
```
## setup

@@ -98,0 +109,0 @@ download test files with:

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