# fast-diy

> A small tool to quickly format Discuz! diy module.

Latest version **0.0.3** (published 2013-06-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install fast-diy
pnpm add fast-diy
yarn add fast-diy
bun add fast-diy
```

Provides the command `fast-diy`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2013-06-04 |
| First published | 2013-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yuanchuan |
| Maintainers | yuanchuan |
| Keywords | diy, discuz |

## Links

- npm: https://www.npmjs.com/package/fast-diy
- Repository: https://github.com/yuanchuan/fast-diy
- Issues: https://github.com/yuanchuan/fast-diy/issues
- npm.io page: https://npm.io/package/fast-diy

## Dependencies (2)

- [cheerio](https://npm.io/package/cheerio.md) ~0.8.3
- [fcompose](https://npm.io/package/fcompose.md) ~0.2.1

## Recent versions

- 0.0.3 (latest) — 2013-06-04
- 0.0.2 — 2013-06-04
- 0.0.1 — 2013-06-04

## README

# fast-diy

A small tool to quickly format Discuz! diy module(I hate it!).  

## Install from npm

```bash
$ npm install -g fast-diy
```

## How to use
Add a `diy` class name to each html tag which is going to be DIYed and run the **fast-diy** command: 

```bash
$ fast-diy INPUT.html OUTPUT.html
```

Sample input:

```html
<div class="article diy">
  <p> test </p>
</div>
```

Sample output:

```html
<!--[diy=diy-f78e9de8]--><div class="article" id="diy-f78e9de8">
  <p> test </p>
</div><!--[/diy]-->
```

## License
MIT

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