# chset

> 简单快速替换目录或多个文件中的一些配置项

Latest version **1.0.1** (published 2022-02-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install chset
pnpm add chset
yarn add chset
bun add chset
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-02-07 |
| First published | 2022-01-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 14.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | huxinmin |
| Maintainers | huxinmin |
| Keywords | 配置替换, 文本替换, replace |

## Links

- npm: https://www.npmjs.com/package/chset
- Repository: https://github.com/huxinmin/chSet
- Homepage: https://github.com/huxinmin/chSet#readme
- Issues: https://github.com/huxinmin/chSet/issues
- npm.io page: https://npm.io/package/chset

## Dependencies (3)

- [ajv](https://npm.io/package/ajv.md) ^8.9.0
- [glob](https://npm.io/package/glob.md) ^7.2.0
- [typescript](https://npm.io/package/typescript.md) ^4.5.5

## Recent versions

- 1.0.1 (latest) — 2022-02-07
- 1.0.0 — 2022-01-29

## README

# chSet
简单快速替换目录或多个文件中的一些配置项


## Installation
```shell
# Using npm, installing to local project
npm i --save chset

# Using yarn
yarn add chset
```

## Basic usage

```js
const options = {
  src: ['./*.js'],
  test: /FOO|FOO/g,
  ignore:['*.html'],
  transform: (text) => text.toUpperCase()
};

chSet(options);
```

```js
const options = {
  src: ['./lib', './test'],
  test: /FOO|FOO/g,
  ignore:['*.html'],
  transform: (text) => text.toUpperCase()
};

chSet(options);
```

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