createReadStream directly from url

How can i read a file from without download ?

let url = ""

async function processLineByLine(url) {
  try {
    const rl = createInterface({
      input: createReadStream(url),
      crlfDelay: Infinity

    rl.on("line", (line) => {

    await once(rl, "close");

    console.log("File processed.");
  } catch (err) {

Read more here:

Content Attribution

This content was originally published by totobolocolo at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: