# char-replacer

> 一个字符替换器。可以批量处理所有指定文件中的字符。比如，你想把所有文件里的一些特殊字符处理掉，可以试试它。

Latest version **1.0.1** (published 2017-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install char-replacer
pnpm add char-replacer
yarn add char-replacer
bun add char-replacer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-01-10 |
| First published | 2017-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | gaozenghui |

## Links

- npm: https://www.npmjs.com/package/char-replacer
- npm.io page: https://npm.io/package/char-replacer

## Dependencies (1)

- [through2](https://npm.io/package/through2.md) ^2.0.3

## Recent versions

- 1.0.1 (latest) — 2017-01-10

## README

### replacer
一个字符替换器。可以批量处理所有指定文件中的字符。比如，你想把所有文件里的一些特殊字符处理掉，可以试试它。

### 安装
用npm: `npm install replacer --save-dev`

用yarn: `yarn add --dev`

### 使用

```
var replacer = require('replacer');
var config = {
    src: './src',
    dest: './dest',
    '<': '&lt;'
};
replacer(config);
```

关于config:

- src是原路径，可指定单个文件，也可指定一批文件，当然通配符也是可以的，比如'./src/test.txt'、'./src'、'./src/*'
- dest是原路径，可指定单个文件，也可指定一批文件，当然通配符也是可以的，比如'./dest/test.txt'、'./dest'、'./dest/*'

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