npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

bipf-filter

1.0.1

@dominictarr

npmHomeRepoSnykSocket
Downloads:0
$ npm install bipf-filter
DailyWeeklyMonthlyYearly

bipf-filter

create a filter function to process bipf (Binary In-Place Format)

bipf is a binary JSON-analogous format that is designed for reading in-place, that is without parsing, and without allocating memory. That makes reading from it very fast. If you need to read a bulk amount of data, but you are mainly sifting through everything for just a few things, say to query a database, you want bipf or something like bipf.

And you also want a filter function, probably, which is what this module provides.

example

var Filter = require('bipf-filter')

var f = Filter(['AND',
  ['EQ', ['foo'], 'bar'],
  ['EQ', ['bar'], 'baz']
])

//where data is an array of bipf buffers...
var match = data.filter(f)

License

MIT