How to use the count function from pull-stream

Find comprehensive JavaScript pull-stream.count code examples handpicked from public code repositorys.

113
114
115
116
117
118
119
120
121
```txt
        count(6)
0---1---2---3---4---5---6
```
```js
const source = pull.count(6)
const sink = pull.log()
pull(source, sink)
```
fork icon46
star icon839
watch icon48

+ 3 other calls in file

65
66
67
68
69
70
71
72
73
74
75
76
}


test('tumbling to 100', function (t) {


  pull(
    pull.count(100),
    groupTo100(),
    pull.collect(function (err, ary) {
      t.deepEqual(ary, expected)
      console.log(ary)
fork icon2
star icon9
watch icon2

21
22
23
24
25
26
27
28
29
30
        offset += expected.length
      }
    })
  )
  pull(
    pull.count(99),
    pull.map((i) => jsTestData + ' ' + i),
    stream
  )
}
fork icon0
star icon0
watch icon0

+ 2 other calls in file