
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
pull-cursor
Advanced tools
A pull-stream over series that have an index.
I wrote this to abstract out streams for flumelog-offset it makes flexible streams on ranges easy, including live streams!
var inject = require('pull-cursor')
since is an obv instance, which represents the current length
of the dataset. getMeta is a function that takes an offset
and callsback the value, and the next and prev offsets.
var Obv = require('obv')
var since = Obv()
//dummp example with an array as the datastore
var ary = ['A', 'B', 'C', 'D']
since.set(ary.length - 1) //set since to last index!
var createStream = require('pull-cursor')(
since,
function (offset, cb) {
if(offset < 0 || offset >= ary.length)
return cb(new Error('out of bounds:'+offset)
cb(null, ary[offset], offset-1, offset+1)
})
createStream now accepts all the typical options of a
levelup or flumedb stream. including
reverse (boolean) read backwardslive (boolean) include new itemsold (boolean) include old items (set to false implies live)gt (offset) items greater than a valid offsetgte (offset) items greater or equal to a valid offsetlt (offset) items less than a given offsetlte (offset) items less than or equal to a given offsetlimit (number) stop after N items.MIT
FAQs
A pull-stream over series that have an index.
The npm package pull-cursor receives a total of 221 weekly downloads. As such, pull-cursor popularity was classified as not popular.
We found that pull-cursor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.