Code files

This commit is contained in:
Akhil
2017-07-31 11:33:31 +05:30
parent 073a63ebdd
commit b9ae409ec0
801 changed files with 17535 additions and 0 deletions
@@ -0,0 +1,19 @@
'use strict'
const { Readable, Writable } = require('readable-stream')
const rs = Readable({
read: () => {
rs.push(Buffer.from('Hello, World!'))
rs.push(null)
}
})
const ws = Writable({
write: (data, enc, cb) => {
console.log(`Data written: ${data.toString()}`)
cb()
}
})
rs.pipe(ws)