
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
pull-streams and continuables make friends!
continuables are a like async callbacks, but more composable. instead of taking a series of arguments, then a callback, a continuable takes it's arguments, and returns a function that takes exactly one argument: the callback.
this makes it easy represent a single async operation, you can easily pass a continuable to another function.
continuable repo, bundle of best continuables.
pull-cont takes a continuable that returns a pull-stream, and makes it into a pull-stream.
It's like pull-defer but easier for simple cases.
var PullCont = require('pull-cont')
// or PullCont = requrie('pull-cont/source')
//create a pull-stream that reads a directory!
pull(
PullCont(function (cb) {
fs.readdir(directory, function (err, ls) {
if(err) cb(err)
else cb(null, pull.values(ls))
})
}),
...
)
for Source streams, if the continuable returns another continuable, pull-cont will also call that recursively
until it gets a pull-stream source. I don't know, this might be useful for something.
You can also use this to create sink and duplex streams. (Unless you are designing a protocol you can probably ignore Duplex)
var Sink = require('pull-cont/sink')
var Duplex = require('pull-cont/duplex')
//and then complete the continuable with the correct type of stream
Sink(function (cb) {
cb(null, pull.drain())
})
MIT
FAQs
pull-streams and continuables make friends!
The npm package pull-cont receives a total of 514 weekly downloads. As such, pull-cont popularity was classified as not popular.
We found that pull-cont 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.