command-stream 0.7.1 → 0.8.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/README.md +265 -153
- package/package.json +36 -4
- package/src/$.mjs +3650 -1599
- package/src/$.utils.mjs +14 -6
- package/src/commands/$.basename.mjs +8 -6
- package/src/commands/$.cat.mjs +23 -6
- package/src/commands/$.cd.mjs +13 -4
- package/src/commands/$.cp.mjs +52 -25
- package/src/commands/$.dirname.mjs +6 -4
- package/src/commands/$.echo.mjs +11 -4
- package/src/commands/$.env.mjs +3 -3
- package/src/commands/$.exit.mjs +1 -1
- package/src/commands/$.false.mjs +1 -1
- package/src/commands/$.ls.mjs +28 -15
- package/src/commands/$.mkdir.mjs +24 -8
- package/src/commands/$.mv.mjs +48 -20
- package/src/commands/$.pwd.mjs +6 -3
- package/src/commands/$.rm.mjs +29 -12
- package/src/commands/$.seq.mjs +13 -9
- package/src/commands/$.sleep.mjs +83 -31
- package/src/commands/$.test.mjs +4 -4
- package/src/commands/$.touch.mjs +35 -10
- package/src/commands/$.true.mjs +1 -1
- package/src/commands/$.which.mjs +11 -6
- package/src/commands/$.yes.mjs +67 -23
- package/src/shell-parser.mjs +113 -85
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "command-stream",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Modern $ shell utility library with streaming, async iteration, and EventEmitter support, optimized for Bun runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/$.mjs",
|
|
@@ -23,7 +23,18 @@
|
|
|
23
23
|
"test:readme": "bun test tests/readme-examples.test.mjs",
|
|
24
24
|
"test:sync": "bun test tests/sync.test.mjs",
|
|
25
25
|
"test:builtin": "bun test tests/builtin-commands.test.mjs",
|
|
26
|
-
"test:pipe": "bun test tests/pipe.test.mjs"
|
|
26
|
+
"test:pipe": "bun test tests/pipe.test.mjs",
|
|
27
|
+
"lint": "eslint .",
|
|
28
|
+
"lint:fix": "eslint . --fix",
|
|
29
|
+
"format": "prettier --write .",
|
|
30
|
+
"format:check": "prettier --check .",
|
|
31
|
+
"check:duplication": "jscpd .",
|
|
32
|
+
"check": "bun run lint && bun run format:check && bun run check:duplication",
|
|
33
|
+
"prepare": "husky || true",
|
|
34
|
+
"changeset": "changeset",
|
|
35
|
+
"changeset:version": "bun scripts/changeset-version.mjs",
|
|
36
|
+
"changeset:publish": "changeset publish",
|
|
37
|
+
"changeset:status": "changeset status --since=origin/main"
|
|
27
38
|
},
|
|
28
39
|
"keywords": [
|
|
29
40
|
"shell",
|
|
@@ -46,5 +57,26 @@
|
|
|
46
57
|
"src/",
|
|
47
58
|
"README.md",
|
|
48
59
|
"LICENSE"
|
|
49
|
-
]
|
|
50
|
-
|
|
60
|
+
],
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@changesets/cli": "^2.29.7",
|
|
63
|
+
"eslint": "^9.38.0",
|
|
64
|
+
"eslint-config-prettier": "^10.1.8",
|
|
65
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
66
|
+
"husky": "^9.1.7",
|
|
67
|
+
"jscpd": "^4.0.5",
|
|
68
|
+
"lint-staged": "^16.2.6",
|
|
69
|
+
"prettier": "^3.6.2"
|
|
70
|
+
},
|
|
71
|
+
"lint-staged": {
|
|
72
|
+
"*.{js,mjs,cjs}": [
|
|
73
|
+
"eslint --fix --max-warnings 0",
|
|
74
|
+
"prettier --write",
|
|
75
|
+
"prettier --check"
|
|
76
|
+
],
|
|
77
|
+
"*.md": [
|
|
78
|
+
"prettier --write",
|
|
79
|
+
"prettier --check"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|