@@ -44,7 +44,7 @@ It turns xast into XML.
44
44
## Install
45
45
46
46
This package is [ ESM only] [ esm ] .
47
- In Node.js (version 12.20+, 14.14+, 16.0+, or 18 .0+), install with [ npm] [ ] :
47
+ In Node.js (version 14.14+ and 16 .0+), install with [ npm] [ ] :
48
48
49
49
``` sh
50
50
npm install xast-util-from-xml
@@ -129,22 +129,21 @@ console.log(tree)
129
129
130
130
## API
131
131
132
- This package exports the identifier ` fromXml ` .
132
+ This package exports the identifier [ ` fromXml ` ] [ fromxml ] .
133
133
There is no default export.
134
134
135
135
### ` fromXml(value) `
136
136
137
- Turn XML into a syntax tree.
137
+ Parse a string of XML to a xast tree.
138
138
139
139
##### Parameters
140
140
141
- ###### ` value `
142
-
143
- Value to parse (` string ` or ` Buffer ` in UTF-8).
141
+ * ` value ` (` string ` or ` Buffer ` in UTF-8).
142
+ — serialized XML
144
143
145
144
##### Returns
146
145
147
- [ ` Root ` ] [ root ] .
146
+ xast root ( [ ` Root ` ] [ root ] ) .
148
147
149
148
## Types
150
149
@@ -155,7 +154,7 @@ It exports no additional types.
155
154
156
155
Projects maintained by the unified collective are compatible with all maintained
157
156
versions of Node.js.
158
- As of now, that is Node.js 12.20+, 14.14+, 16.0+, and 18 .0+.
157
+ As of now, that is Node.js 14.14+ and 16 .0+.
159
158
Our projects sometimes work with older versions, but this is not guaranteed.
160
159
161
160
## Security
@@ -240,3 +239,5 @@ abide by its terms.
240
239
[ sax ] : https://github.com/isaacs/sax-js
241
240
242
241
[ xast-util-to-xml ] : https://github.com/syntax-tree/xast-util-to-xml
242
+
243
+ [ fromxml ] : #fromxmlvalue
0 commit comments