summaryrefslogtreecommitdiff
path: root/app/lib/pipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/pipe.js')
-rw-r--r--app/lib/pipe.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/lib/pipe.js b/app/lib/pipe.js
index e329b2b..db58e5f 100644
--- a/app/lib/pipe.js
+++ b/app/lib/pipe.js
@@ -1,8 +1,6 @@
-"use strict";
+import { spawn } from "node:child_process";
-const { spawn } = require("child_process");
-
-module.exports = function pipe({ command, flags, stdin="", buffer } = {}) {
+export default function pipe({ command, flags, stdin="", buffer } = {}) {
return new Promise((resolve, reject) => {
const child = spawn(command, flags);
let stdout = (buffer?[]:"");