# reepack

> template pack tool

Latest version **1.0.2** (published 2019-07-08) · ISC license · 0 weekly downloads

## Install

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

Provides the command `repack`.

## 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.2 |
| Published | 2019-07-08 |
| First published | 2019-07-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.10.0 |
| Dependencies | 2 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | M |
| Maintainers | notescript |

## Links

- npm: https://www.npmjs.com/package/reepack
- Repository: https://github.com/noteScript/re-pack
- Homepage: https://github.com/noteScript/re-pack#readme
- Issues: https://github.com/noteScript/re-pack/issues
- npm.io page: https://npm.io/package/reepack

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) ^1.3.3
- [semver](https://npm.io/package/semver.md) ^6.0.0

## Recent versions

- 1.0.2 (latest) — 2019-07-08
- 1.0.1 — 2019-07-02
- 1.0.0 — 2019-07-01

## README

#### 文件内容抽取打包工具

___使用步骤:

##### install repack

```bash
npm install reepack -D
```

##### @workDir/repack.config.js

```javascript
module.exports = {
  output: { // 输出
    ext: '.yml', // 文件后缀
    dir: 'bindRelationShip_output', // 输出文件夹
  },
  input: { // 输入
    ext: '.vue', // 文件后缀
    dir: 'src', //输入文件夹
  },
  // isFlat: true, // 是否递归
  // sep = '.', // 片段分隔符
  extract: /<i18n>([\S\s]*)<\/i18n>/, // 需要提取的正则表达式
  // hasManifest, // 是否生成清单
  // rewrite, // 重写[exec Regex] 需要返回你处理的结果，这将覆盖程序处理结果
};

```

##### command

```bash
repack i  # 执行输入
repack o  # 执行输出
```

___注意：


___工具使用了一些新的fs操作接口，你的node版本需要大于11.0.0，才能使用这个工具！___

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