fast-diy

0.0.3 • Public • Published

fast-diy

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

Install from npm

$ 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:

$ fast-diy INPUT.html OUTPUT.html

Sample input:

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

Sample output:

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

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    3
  • 0.0.2
    3
  • 0.0.1
    1

Package Sidebar

Install

npm i fast-diy

Weekly Downloads

7

Version

0.0.3

License

MIT

Last publish

Collaborators

  • yuanchuan