New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

farp

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

farp

A tool to find and replace pattern in given file

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
0
Created
Source

farp

A tool to find and replace given pattern with substitute text or filter inside file.

Due to this feature it can be used for replacing the matched selection either with substitute text or filtered text. The filtered texts are made by applying filter criterias over matched selections.

Prerequisite

It would require node.js to be installed on system prior its use.

Setup

Install the app using npm & to access it globally

npm install -g farp

Usage

You can see the available options via below command

> farp
Farp (v1.1.0)

A tool to replace given pattern with substitute inside file.

Syntax:
  farp <pattern> <substitute> <file>
  farp <pattern> --filter=<criteria> <file>

Options:
  --filter    Criteria to modify the matched chunk 

Usages:
  farp 'foo' 'bar' file.txt
  farp '\/\{[a-zA-Z0-9_-]+\}' '--filter={"{":"&#123;","}":"&#125;"}' file.txt

It would also get displayed in case of missing parameters.

Keywords

string-substitution

FAQs

Package last updated on 28 Aug 2024

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