{"size": 438, "ext": "js", "max_stars_repo_path": "wstream.js", "max_stars_repo_name": "isbhargav/stream-processing", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "wstream.js", "max_issues_repo_name": "isbhargav/stream-processing", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "wstream.js", "max_forks_repo_name": "isbhargav/stream-processing", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.8571428571, "max_line_length": 79, "alphanum_fraction": 0.6369863014}
// Writable Streams are sink of Data.

// Any  stream you can write to (writable, transform, duplex) has these methods

// .write(data)
// .end()
// .end(data)
// .on('finish',)
// (...).pipe(stream)

const fs = require("fs");

const stream = fs.createWriteStream("cool.txt");

stream.once("finish", () => console.log("Done!!"));
stream.write("hi\n");
stream.write("hello\n");
stream.write("hey\n");
stream.write("hola\n");
stream.end();
