Skip to content

Commit

Permalink
Replace get-stdin package dependency with node:stream/consumers.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Nov 17, 2024
1 parent e08f9cd commit d6addd9
Show file tree
Hide file tree
Showing 3 changed files with 328 additions and 381 deletions.
2 changes: 1 addition & 1 deletion markdownlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ try {
if (files.length > 0 && !options.stdin) {
lintAndPrint(null, diff);
} else if (files.length === 0 && options.stdin && !options.fix) {
import('get-stdin').then(module => module.default()).then(lintAndPrint);
import('node:stream/consumers').then(module => module.text(process.stdin)).then(lintAndPrint);
} else {
program.help();
}
Expand Down
Loading

0 comments on commit d6addd9

Please sign in to comment.