redlint 6.3.0 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2026.04.15, v6.4.1
2
+
3
+ feature:
4
+ - 460b40c redlint: redstd: add
5
+
6
+ 2026.04.15, v6.4.0
7
+
8
+ feature:
9
+ - d3ae7e5 redlint: exports: simple
10
+
1
11
  2026.04.14, v6.3.0
2
12
 
3
13
  feature:
package/bin/redlint.js CHANGED
@@ -9,6 +9,7 @@ import formatterDump from '@putout/formatter-dump';
9
9
  import ora from 'ora';
10
10
  import {isCI} from 'ci-info';
11
11
  import {bundle} from '@putout/bundler';
12
+ import {readStdin} from 'redstd';
12
13
  import {edit, editHelp} from '#edit';
13
14
  import {help} from '../lib/help/help.js';
14
15
  import {choose} from '../lib/choose.js';
@@ -61,7 +62,6 @@ import {
61
62
  TEST,
62
63
  isTest,
63
64
  } from '../lib/menu.js';
64
- import {readStdin} from './read-stdin.js';
65
65
 
66
66
  const {log} = console;
67
67
  const {exit} = process;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redlint",
3
- "version": "6.3.0",
3
+ "version": "6.4.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Lint Filesystem with 🐊Putout",
@@ -10,7 +10,8 @@
10
10
  "redlint": "bin/redlint.js"
11
11
  },
12
12
  "exports": {
13
- ".": "./lib/redlint.js"
13
+ ".": "./lib/redlint.js",
14
+ "./simple": "./lib/simple.js"
14
15
  },
15
16
  "imports": {
16
17
  "#edit": "./lib/edit/edit.js",
@@ -58,6 +59,7 @@
58
59
  "montag": "^1.2.1",
59
60
  "ora": "^9.0.0",
60
61
  "putout": "^42.0.0",
62
+ "redstd": "^1.0.0",
61
63
  "try-to-catch": "^4.0.0"
62
64
  },
63
65
  "keywords": [
package/bin/read-stdin.js DELETED
@@ -1,22 +0,0 @@
1
- import {promisify} from 'node:util';
2
- import process from 'node:process';
3
-
4
- export const readStdin = promisify((overrides, fn) => {
5
- const {stdin} = fn ? overrides : process;
6
- fn = fn || overrides;
7
-
8
- stdin.setEncoding('utf8');
9
-
10
- if (stdin.isTTY)
11
- return fn(null, '');
12
-
13
- const data = [];
14
-
15
- stdin.on('data', (chunk) => {
16
- data.push(chunk);
17
- });
18
-
19
- stdin.on('end', () => {
20
- fn(null, data.join(''));
21
- });
22
- });