Socket
Book a DemoInstallSign in
Socket

pear-message

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pear-message

Send object messages between a Pear application's processes/threads, pattern matching them with pear-messages

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
490
26.94%
Maintainers
1
Weekly downloads
 
Created
Source

pear-message

Send object messages between a Pear application's processes/threads, pattern matching them with pear-messages

Usage

import message from 'pear-message'

await message({ some: 'props', to: {pattern: ['match', 'against'] }})

Elsewhere in app use pear-messages:

import messages from 'pear-messages'

const stream = messages({ some: 'props' })

stream.once('data', console.log)

Should log: { some: 'props', to: {pattern: ['match', 'against'] }}

License

Apache-2.0

FAQs

Package last updated on 12 Aug 2025

Did you know?

Socket

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.

Install

Related posts