Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

stream-match

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-match

Match a string in a stream. Zero dependencies

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
28
-20%
Maintainers
1
Weekly downloads
 
Created
Source

stream-match

Match a regexp or string in a stream. Zero dependencies.

Usage

import match from 'stream-match'

// Given a readable stream,
const res = await match(stream, /(p[^n]+n)/)
// `res` will containt `pattern` once it has been emitted.

// You can also wait for a string to be emitted, for example:
await match(ps.stdout, 'continue now')

Installation

$ npm install stream-match

API

res = await match(stream, pattern || string)

License

MIT

FAQs

Package last updated on 11 Jun 2021

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