Skip to content

Is it possible to parse value stored in variable? #4

Open

Description

@andrii-bodnar

Hello everyone, is it possible to parse ndjson as a variable value?

Like this:

var ndjson = require("ndjson")

let string = `{"foo": "bar"}
{"hello": "world"}`;

ndjson.parse(string);

Activity

  1. Ambient-Impact commented on Oct 31, 2022

    @Ambient-Impact

    I'm wondering this as well. I'm not really experienced with streams so the farthest I've gotten is creating a new stream from a Blob, but then I've gotten stuck on the fact that Node.js (v18.9.1) is telling me the ReadableStream doesn't have a pipe() method when I try to call it, which is baffling.

    See this CSS-Tricks article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions