{"size": 361, "ext": "js", "max_stars_repo_path": "_/06-coding-with-streams/11-custom-writable-to-file-stream/index.js", "max_stars_repo_name": "paullewallencom/node-978-1-8392-1411-0", "max_stars_repo_stars_event_min_datetime": "2019-11-02T23:15:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T07:52:39.000Z", "max_issues_repo_path": "_/06-coding-with-streams/11-custom-writable-to-file-stream/index.js", "max_issues_repo_name": "paullewallencom/node-978-1-8392-1411-0", "max_issues_repo_issues_event_min_datetime": "2019-12-02T15:50:11.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-02T10:08:55.000Z", "max_forks_repo_path": "_/06-coding-with-streams/11-custom-writable-to-file-stream/index.js", "max_forks_repo_name": "paullewallencom/node-978-1-8392-1411-0", "max_forks_repo_forks_event_min_datetime": "2019-11-01T09:29:15.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-25T04:10:21.000Z"}
{"max_stars_count": 634, "max_issues_count": 20, "max_forks_count": 224, "avg_line_length": 40.1111111111, "max_line_length": 67, "alphanum_fraction": 0.648199446}
import { join } from 'path'
import { ToFileStream } from './to-file-stream.js'
const tfs = new ToFileStream()

tfs.write({ path: join('files', 'file1.txt'), content: 'Hello' })
tfs.write({ path: join('files', 'file2.txt'), content: 'Node.js' })
tfs.write({ path: join('files', 'file3.txt'), content: 'streams' })
tfs.end(() => console.log('All files created'))
