@@ -44,7 +44,7 @@ Similar packages, [`hast-util-to-string`][hast-util-to-string] and
44
44
## Install
45
45
46
46
This package is [ ESM only] [ esm ] .
47
- In Node.js (version 14.14+ and 16.0 +), install with [ npm] [ ] :
47
+ In Node.js (version 16 +), install with [ npm] [ ] :
48
48
49
49
``` sh
50
50
npm install mdast-util-to-string
@@ -67,7 +67,6 @@ In browsers with [`esm.sh`][esmsh]:
67
67
## Use
68
68
69
69
``` js
70
- import {unified } from ' unified'
71
70
import {fromMarkdown } from ' mdast-util-from-markdown'
72
71
import {toString } from ' mdast-util-to-string'
73
72
@@ -78,7 +77,7 @@ console.log(toString(tree)) // => 'Some emphasis, importance, and code.'
78
77
79
78
## API
80
79
81
- This package exports the identifier [ ` toString ` ] [ api-tostring ] .
80
+ This package exports the identifier [ ` toString ` ] [ api-to-string ] .
82
81
There is no default export.
83
82
84
83
### ` toString(value[, options]) `
@@ -117,10 +116,13 @@ It exports the additional type [`Options`][api-options].
117
116
118
117
## Compatibility
119
118
120
- Projects maintained by the unified collective are compatible with all maintained
119
+ Projects maintained by the unified collective are compatible with maintained
121
120
versions of Node.js.
122
- As of now, that is Node.js 14.14+ and 16.0+.
123
- Our projects sometimes work with older versions, but this is not guaranteed.
121
+
122
+ When we cut a new major release, we drop support for unmaintained versions of
123
+ Node.
124
+ This means we try to keep the current release line, ` mdast-util-to-string@^3 ` ,
125
+ compatible with Node.js 12.
124
126
125
127
## Security
126
128
@@ -163,9 +165,9 @@ abide by its terms.
163
165
164
166
[ downloads ] : https://www.npmjs.com/package/mdast-util-to-string
165
167
166
- [ size-badge ] : https://img.shields.io/bundlephobia/minzip/ mdast-util-to-string.svg
168
+ [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q= mdast-util-to-string
167
169
168
- [ size ] : https://bundlephobia .com/result?p =mdast-util-to-string
170
+ [ size ] : https://bundlejs .com/?q =mdast-util-to-string
169
171
170
172
[ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
171
173
@@ -211,6 +213,6 @@ abide by its terms.
211
213
212
214
[ xss ] : https://en.wikipedia.org/wiki/Cross-site_scripting
213
215
214
- [ api-tostring ] : #tostringvalue-options
216
+ [ api-to-string ] : #tostringvalue-options
215
217
216
218
[ api-options ] : #options
0 commit comments