summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/stream/promises.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/stream/promises.mjs')
-rw-r--r--ext/node/polyfills/stream/promises.mjs12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/node/polyfills/stream/promises.mjs b/ext/node/polyfills/stream/promises.mjs
new file mode 100644
index 000000000..8c1f7439b
--- /dev/null
+++ b/ext/node/polyfills/stream/promises.mjs
@@ -0,0 +1,12 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+// Copyright Joyent and Node contributors. All rights reserved. MIT license.
+
+import stream from "internal:deno_node/polyfills/_stream.mjs";
+
+const { finished, pipeline } = stream.promises;
+
+export default {
+ finished,
+ pipeline,
+};
+export { finished, pipeline };