mafintosh / duplexify

Turn a writable and readable stream into a streams2 duplex stream with support for async initialization and streams1/streams2 input
MIT License
190 stars 36 forks source link

wtf #37

Closed SimonLandeholm closed 3 years ago

SimonLandeholm commented 3 years ago

https://github.com/mafintosh/duplexify/blob/master/index.js#L41

phated commented 3 years ago

@SimonLandeholm that's a pattern to construct a new instance without new. e.g. Duplexify() works the same as new Duplexify()