Socket
Book a DemoInstallSign in
Socket

recursive-replace

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recursive-replace

Replaces all occurrence of the given pattern in a file, recursively, until the pattern is not found.

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Recursive Replace

Replaces all occurrence of the given pattern in a file, recursively, until the pattern is not found.

It's a simpler alternative to sed.

Install

npm i -g recursive-replace

Usage

The executable is available as rrp and recursive-replace.

Usage: rrp -p [pattern] -r [replace] [file]

Options:
  -0  The input file. stdin by default.
  -p  RegExp to search for.                                          [required]
  -r  The replace string. Null by default.

Example

Replace all occurrences of test by Test

rrp -p "test" -r "Test" file

Keywords

string

FAQs

Package last updated on 24 Jan 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.