Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andrii-bodnar opened this issue Oct 31, 2022 · 1 comment
Open

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

andrii-bodnar opened this issue Oct 31, 2022 · 1 comment

Comments

@andrii-bodnar
Copy link

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);
@Ambient-Impact
Copy link

Ambient-Impact commented Oct 31, 2022

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants