TypeScript typings for the core stream library
First, add it to your package.json and install it:
package.json
npm install --save typed-stream
Then use it just as you would the stream library:
import * as net from "typed-stream";