From 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Wed, 18 Nov 2020 23:26:45 +0100 Subject: rm node_modules --- node_modules/flush-write-stream/example.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 node_modules/flush-write-stream/example.js (limited to 'node_modules/flush-write-stream/example.js') diff --git a/node_modules/flush-write-stream/example.js b/node_modules/flush-write-stream/example.js deleted file mode 100644 index fa6b5da..0000000 --- a/node_modules/flush-write-stream/example.js +++ /dev/null @@ -1,22 +0,0 @@ -var writer = require('./') - -var ws = writer(write, flush) - -ws.on('finish', function () { - console.log('finished') -}) - -ws.write('hello') -ws.write('world') -ws.end() - -function write (data, enc, cb) { - // i am your normal ._write method - console.log('writing', data.toString()) - cb() -} - -function flush (cb) { - // i am called before finish is emitted - setTimeout(cb, 1000) // wait 1 sec -} -- cgit v1.2.3