
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
pear-opstream
Advanced tools
Pear operations stream base class
Readable stream wrapper around an async op(params) function.
Emits status object data events, at minimum:
{ tag: 'error', ... } objects - logical errors from op, not stream errors{ tag: 'final', ... } objectFor convenience consumer counterpart library see pear-opwait.
npm install pear-opstream
new Opstream(op, params, done?)Create a new Opstream Instance.
op: (params) => Promise<any>
Async function called once when the stream eagerly reads.
params: Object
Input passed into op.
params.link = plink.normalize(params.link)
done?: () => void
Optional callback once emitted after the final chunk and stream ends.
if op rejects.
{
tag: 'error',
data: { stack, code, message, success: false, info }
}
final status object always emitted exactly once:
{
tag: 'final',
data: { success, ...final }
}
The { tag: 'final', ... } status object merges with instance.final.
Set this.final in subclass to declare final return value of opstream.
this.final = { result: 42 }
final chunk:
{
tag: 'final',
data: { success: true, result: 42 }
}
Apache-2.0
FAQs
Pear operations stream base class
The npm package pear-opstream receives a total of 137 weekly downloads. As such, pear-opstream popularity was classified as not popular.
We found that pear-opstream demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.