0

I am trying to use these 3 lines with import instead..

const fs = require("fs");
const {promisify} = require("util");
const pipeline = promisify(require("stream").pipeline);

First 2 lines I think are as simple as:

import fs from 'fs';
import {promisify} from 'util';

How the hell do I convert the 3rd line though?! I appreciate the help!

1 Answer 1

2

Break it up.

import stream from 'stream';
const pipeline = promisify(stream.pipeline);
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.