Initial commit

This commit is contained in:
Spencer Pincott
2024-07-15 22:20:13 -04:00
commit 97737ca1ae
16618 changed files with 934131 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
const transform = require('..')
const assert = require('assert')
const output = []
transform([
['1','2','3','4'],
['a','b','c','d']
], function(data){
data.push(data.shift())
return data
})
.on('readable', function(){
while(row = this.read()){
output.push(row)
}
})
.on('error', function(err){
console.log(err.message)
})
.on('finish', function(){
assert.deepEqual(output, [
[ '2', '3', '4', '1' ],
[ 'b', 'c', 'd', 'a' ]
])
})