Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

restream

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restream - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

README-source.md

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## 15 June 2018
### 2.0.2
- [doc] use [`documentary`](https://npmjs.org/package/documentary) to generate TOC.
- [doc] better JSDoc for methods.
## 2.0.1 (9 May 2018)

@@ -2,0 +9,0 @@

22

package.json
{
"name": "restream",
"version": "2.0.1",
"version": "2.0.2",
"description": "Regular Expression Detection & Replacement streams",
"main": "build",
"scripts": {
"test": "zoroaster test/spec --babel",
"test": "zoroaster test/spec -b",
"t": "zoroaster --babel",
"build": "babel src --out-dir build",
"e": "node examples/run",
"doc": "doc -t README-source.md -r -o README.md",
"examples/replace-function.js": "yarn e examples/replace-function",

@@ -40,13 +41,14 @@ "examples/replace-stream.js": "yarn e examples/replace-stream",

"devDependencies": {
"@babel/cli": "7.0.0-beta.46",
"@babel/core": "7.0.0-beta.46",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.46",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.46",
"@babel/register": "7.0.0-beta.46",
"@babel/cli": "7.0.0-beta.51",
"@babel/core": "7.0.0-beta.51",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.51",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.51",
"@babel/register": "7.0.0-beta.51",
"catchment": "2.0.1",
"snapshot-context": "1.1.0",
"spawncommand": "1.1.0",
"zoroaster": "1.1.0"
"documentary": "1.0.1",
"snapshot-context": "2.0.1",
"spawncommand": "2.0.1",
"zoroaster": "2.1.0"
},
"dependencies": {}
}

@@ -15,4 +15,11 @@ # restream

## restream(regex: RegExp) => Transform
## Table of Contents
- [Table of Contents](#table-of-contents)
- [`restream(regex: RegExp) => Transform`](#restreamregex-regexp--transform)
- [`replaceStream({re:RegExp, replacement:string }[]) => Transform`](#replacestreamreregexp-replacementstring---transform)
- [`replaceStream({re:RegExp, replacement: function(match, ...params) }[]) => Transform`](#replacestreamreregexp-replacement-functionmatch-params---transform)
## `restream(regex: RegExp) => Transform`
Create a transform stream which will buffer incoming data and push regex results

@@ -57,3 +64,3 @@ when matches can be made, i.e. when `regex.exec` returns non-null value. You will probably want to

## replaceStream({re:RegExp, replacement:string }[]) => Transform
## `replaceStream({re:RegExp, replacement:string }[]) => Transform`

@@ -104,3 +111,3 @@ Creates a `Transform` stream which will make data available

## replaceStream({re:RegExp, replacement: function(match, ...params) }[]) => Transform
## `replaceStream({re:RegExp, replacement: function(match, ...params) }[]) => Transform`

@@ -107,0 +114,0 @@ You can replace matches using a function. See [MDN][2] for more documentation.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc