Name: pull-skip
Owner: TABLEFLIP
Description: Skip the first n bytes of your pull stream
Created: 2017-02-09 09:21:29.0
Updated: 2017-02-09 09:22:05.0
Pushed: 2017-05-31 09:08:39.0
Homepage: null
Size: 4
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Skip the first n bytes of your pull stream.
t pull = require('pull-stream')
t skipBytes = require('pull-skip')
t zeros = (n) => Buffer.alloc(n)
t ones = (n) => Buffer.alloc(n, 1)
(
stream in bytes <Buffer 00 00 00 01 01 01>
ll.values([Buffer.concat([zeros(3), ones(3)])]),
ipBytes(2),
ll.collect((err, data) => {
if (err) throw err
console.log(Buffer.concat(data)) // <Buffer 00 01 01 01>
A (?°?°???TABLEFLIP side project.