@kokiito0926/cli2module 0.0.6 → 0.0.7
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/index.js +0 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -66,14 +66,6 @@ function runInWorker(scriptPath, args = [], input = "") {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
/**
|
|
70
|
-
* CLIツールをワーカースレッドで実行します。
|
|
71
|
-
*
|
|
72
|
-
* @param {string} specifier 実行するCLIツールのパスまたはモジュール名
|
|
73
|
-
* @param {string[]} [args=[]] コマンドライン引数の配列
|
|
74
|
-
* @param {string} [input=""] 標準入力に渡す文字列
|
|
75
|
-
* @returns {Promise<{code: number, stdout: string, stderr: string}>}
|
|
76
|
-
*/
|
|
77
69
|
export async function cli2module(specifier, args = [], input = "") {
|
|
78
70
|
let cliUrl;
|
|
79
71
|
try {
|