fast-diy

A small tool to quickly format Discuz! diy module.

fast-diy

A small tool to quickly format Discuz! diy module.

$ npm install -g fast-diy

Add a "diy" class name to each html tag which is going to be DIYed. Then:

$ fast-diy INPUT.html OUTPUT.html

Example input:

<div class="diy">
  <p> test </p>
</div>

Example output

<!--[diy=diy-f78e9de8]--><div>
  <p> test </p>
</div><!--[/diy]-->

MIT