UNPKG
@qrac/svgstore
Version:
latest (3.0.3)
3.0.3
3.0.2
Combines mulitple svg files into one.
github.com/svgstore/svgstore
svgstore/svgstore
@qrac/svgstore
/
src
/
utils
/
load-xml.js
17 lines
(12 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** * Utility method to create an XML document object with a jQuery-like * interface for node manipulation. */
'use strict'
;
var
cheerio =
require
(
'cheerio'
);
function
loadXml
(
text
) {
return
cheerio.
load
(text, {
xmlMode
:
true
, }); }
module
.
exports
= loadXml;