New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/replacestream

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/replacestream - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

10

replacestream/index.d.ts

@@ -14,3 +14,3 @@ // Type definitions for replacestream 4.0

*/
limit?: number;
limit?: number | undefined;
/**

@@ -21,3 +21,3 @@ * The text encoding used during search and replace.

*/
encoding?: string;
encoding?: string | undefined;
/**

@@ -29,3 +29,3 @@ * When doing cross-chunk replacing, this sets the maximum length match

*/
maxMatchLen?: number;
maxMatchLen?: number | undefined;
/**

@@ -37,3 +37,3 @@ * When doing string match (not relevant for regex matching) whether to do a

*/
ignoreCase?: boolean;
ignoreCase?: boolean | undefined;
/**

@@ -46,3 +46,3 @@ * When provided, these flags will be used when creating the search regexes

*/
regExpOptions?: string;
regExpOptions?: string | undefined;
}

@@ -49,0 +49,0 @@

{
"name": "@types/replacestream",
"version": "4.0.0",
"version": "4.0.1",
"description": "TypeScript definitions for replacestream",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/replacestream",
"license": "MIT",

@@ -14,10 +15,12 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/replacestream"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "ccc9632efe8ce9070e57ae25519acef8397c331d1d59442b6165350b05078713",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "7e89afaf588d08f3b4d3d7d45a9fa39642ac211a00d11498b9c4ac3e3230391f",
"typeScriptVersion": "3.6"
}

@@ -8,6 +8,64 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/replacestream
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/replacestream.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/replacestream/index.d.ts)
````ts
// Type definitions for replacestream 4.0
// Project: https://github.com/eugeneware/replacestream#readme
// Definitions by: Piotr Roszatycki <https://github.com/dex4er>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Thu, 11 Oct 2018 18:01:55 GMT
declare namespace ReplaceStream {
interface Options {
/**
* Sets a limit on the number of times the replacement will be made. This
* is forced to one when a regex without the global flag is provided.
*
* Default: `Infinity`
*/
limit?: number | undefined;
/**
* The text encoding used during search and replace.
*
* Default: `"utf8"`
*/
encoding?: string | undefined;
/**
* When doing cross-chunk replacing, this sets the maximum length match
* that will be supported.
*
* Default: `100`
*/
maxMatchLen?: number | undefined;
/**
* When doing string match (not relevant for regex matching) whether to do a
* case insensitive search.
*
* Default: `true`
*/
ignoreCase?: boolean | undefined;
/**
* When provided, these flags will be used when creating the search regexes
* internally.
*
* @deprecated as the flags set on the regex provided are no longer mutated
* if this is not provided.
*/
regExpOptions?: string | undefined;
}
type ReplaceFunction = (match: string, p1: string, offset: number, string: string) => string;
}
declare function ReplaceStream(
search: RegExp | string,
replace: ReplaceStream.ReplaceFunction | string,
options?: ReplaceStream.Options
): any;
export = ReplaceStream;
````
### Additional Details
* Last updated: Thu, 08 Jul 2021 22:42:00 GMT
* Dependencies: none

@@ -17,2 +75,2 @@ * Global values: none

# Credits
These definitions were written by Piotr Roszatycki <https://github.com/dex4er>.
These definitions were written by [Piotr Roszatycki](https://github.com/dex4er).

Sorry, the diff of this file is not supported yet

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