
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
Small cursor abstraction that can seek, go forward, and go backwards.
npm install nanocursor
const Nanocursor = require('nanocursor')
const cursor = new Nanocursor({
seek (pos, cb) {
// should seek to pos
cb(null)
},
next (cb) {
// read the next item and return it
cb(null, ...)
},
prev (cb) {
// read the prev item and return it
cb(null, ...)
}
})
cursor = new Cursor([options])Make a new cursor. Optionally pass in seek, next, prev as the implementation for the those corresponding calls.
cursor.seek(position, [callback])Seek the cursor.
cursor._seek(position, callback)Override this method to add seek logic.
Only one _prev, _next, or _seek call will be active at the time.
cursor.next(callback)Get the next cursor item.
cursor._next(callback)Override this method to add next logic.
Only one _prev, _next, or _seek call will be active at the time.
cursor.prev(callback)Get the prev cursor item.
cursor._prev(callback)Override this method to add prev logic.
Only one _prev, _next, or _seek call will be active at the time.
MIT
FAQs
Small cursor abstraction
We found that nanocursor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.