Skip to content

Commit d6addd9

Browse files
committed
Replace get-stdin package dependency with node:stream/consumers.
1 parent e08f9cd commit d6addd9

File tree

3 files changed

+328
-381
lines changed

3 files changed

+328
-381
lines changed

markdownlint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ try {
331331
if (files.length > 0 && !options.stdin) {
332332
lintAndPrint(null, diff);
333333
} else if (files.length === 0 && options.stdin && !options.fix) {
334-
import('get-stdin').then(module => module.default()).then(lintAndPrint);
334+
import('node:stream/consumers').then(module => module.text(process.stdin)).then(lintAndPrint);
335335
} else {
336336
program.help();
337337
}

0 commit comments

Comments
 (0)