Drafting new file stream library in ES6