HaxeFoundation / HaxeFoundation/hxnodejs

Allow construction of stream classes?

Open
#83 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
177
Forks
58
PR merge metrics
No merged PRs in 30d

Description

While we're talking streams, I've noticed that all classes in the `js.node.stream` package have private constructors. I've found it useful to construct streams, for example in string-to-stream conversions:

``` js
var s = new stream.Readable();
s.push('your text here');
s.push(null);
```

(Example from [here](https://stackoverflow.com/questions/12755997/how-to-create-streams-from-string-in-node-js))

So would it be possible to make one or more of those constructors public?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.