Comparing version 1.3.0-0 to 1.3.0
@@ -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: |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18624
14
185
0
120