Skip to content

.scan to search for a buffer #21

@SamyPesse

Description

@SamyPesse

node-binary has a method .scan:

var b = binary()
    .scan('line', new Buffer('\r\n'))
    .tap(function (vars) {
        console.log(vars.line)
    });

I'll be happy to propose a PR to add this if @deoxxa thinks it's a good idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions