# sr-igncp

> Search and replace for the command line

Latest version **0.0.9** (published 2017-11-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install sr-igncp
pnpm add sr-igncp
yarn add sr-igncp
bun add sr-igncp
```

Provides the command `sr`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2017-11-27 |
| First published | 2017-10-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ignacio Carbajo |
| Maintainers | igncp |

## Links

- npm: https://www.npmjs.com/package/sr-igncp
- npm.io page: https://npm.io/package/sr-igncp

## Dependencies (5)

- [walk](https://npm.io/package/walk.md) ^2.3.9
- [chalk](https://npm.io/package/chalk.md) ^2.1.0
- [blessed](https://npm.io/package/blessed.md) ^0.1.81
- [inquirer](https://npm.io/package/inquirer.md) ^3.3.0
- [commander](https://npm.io/package/commander.md) ^2.11.0

## Recent versions

- 0.0.9 (latest) — 2017-11-27
- 0.0.8 — 2017-11-16
- 0.0.7 — 2017-11-02
- 0.0.6 — 2017-11-01
- 0.0.5 — 2017-10-31
- 0.0.4 — 2017-10-30
- 0.0.3 — 2017-10-29
- 0.0.2 — 2017-10-08
- 0.0.1 — 2017-10-08

## README

# SR

[![npm version](https://badge.fury.io/js/sr-igncp.svg)](https://badge.fury.io/js/sr-igncp) [![Build Status](https://travis-ci.org/igncp/sr.svg?branch=master)](https://travis-ci.org/igncp/sr) [![Coverage Status](https://coveralls.io/repos/github/igncp/sr/badge.svg?branch=master)](https://coveralls.io/github/igncp/sr?branch=master)

Search and replace for the command line

It provides a productive way of replacing strings in files via command line, including the following features:
- Replace matches one by one, viewing the diff, and updating the diff each time a change is made to a file
- Use regular expressions, which accept matched groups in the replacements, using `String.prototype.replace` under the hood
- Preview already existing matches of the replacement text in case you want to make sure it is a new string

For more info, you can run:

`sr --help`

It requires Node v6.10 or higher

This package uses Node for everything, and it will be slower than other alternatives using C, Go, Rust, etc. The goal of this package is not maximize performance, but the features listed above. The speed in medium project sizes (less than 100k lines) is acceptable. PRs to improve the performance are always welcome.

**This package is under active development. The package name is provisional and the API may have breaking changes**

## License

MIT

---
_Source: https://npm.io/package/sr-igncp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
