@@ -44,7 +44,7 @@ It turns xast into XML.
4444## Install
4545
4646This 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] [ ] :
4848
4949``` sh
5050npm install xast-util-from-xml
@@ -129,22 +129,21 @@ console.log(tree)
129129
130130## API
131131
132- This package exports the identifier ` fromXml ` .
132+ This package exports the identifier [ ` fromXml ` ] [ fromxml ] .
133133There is no default export.
134134
135135### ` fromXml(value) `
136136
137- Turn XML into a syntax tree.
137+ Parse a string of XML to a xast tree.
138138
139139##### Parameters
140140
141- ###### ` value `
142-
143- Value to parse (` string ` or ` Buffer ` in UTF-8).
141+ * ` value ` (` string ` or ` Buffer ` in UTF-8).
142+ — serialized XML
144143
145144##### Returns
146145
147- [ ` Root ` ] [ root ] .
146+ xast root ( [ ` Root ` ] [ root ] ) .
148147
149148## Types
150149
@@ -155,7 +154,7 @@ It exports no additional types.
155154
156155Projects maintained by the unified collective are compatible with all maintained
157156versions 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+.
159158Our projects sometimes work with older versions, but this is not guaranteed.
160159
161160## Security
@@ -240,3 +239,5 @@ abide by its terms.
240239[ sax ] : https://github.com/isaacs/sax-js
241240
242241[ xast-util-to-xml ] : https://github.com/syntax-tree/xast-util-to-xml
242+
243+ [ fromxml ] : #fromxmlvalue
0 commit comments