
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
callbag-subscribe
Advanced tools
A callbag sink (listener) that connects an Observer a-la RxJS.
npm install callbag-subscribe
import pipe from 'callbag-pipe';
import interval from 'callbag-interval';
import subscribe from 'callbag-subscribe';
const source = interval( 10 );
pipe(
source,
subscribe( val => console.log( val ) )
);
// 0
// 1
// 2
// 3
// 4
// 5
// 6
// 7
// 8
// 9
import pipe from 'callbag-pipe';
import interval from 'callbag-interval';
import subscribe from 'callbag-subscribe';
const source = interval( 10 );
pipe(
source,
subscribe({
next: val => console.log( val ),
complete: () => console.log( 'Done!' ),
error: err => console.error( err )
})
);
// 0
// 1
// 2
// 3
// 4
// 5
// 6
// 7
// 8
// 9
// Done!
Use the returned disposal function to terminate the subscription.
const source = fromEvent( document.body, 'click' );
const dispose = pipe(
source,
subscribe({
next: ev => console.log( 'Click:', ev )
})
);
// Do some stuff...
dispose(); // Terminate the subscription.
FAQs
A callbag sink (listener) that connects an Observer a-la RxJS.
The npm package callbag-subscribe receives a total of 5,385 weekly downloads. As such, callbag-subscribe popularity was classified as popular.
We found that callbag-subscribe 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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.