Divless HTML Watcher on NPM

June 24, 2024

codetmp7.web.app has a build in divless HTML format converter. To use divless HTML anywhere else, you can install divless-html-watcher package from NPM.

bash
npm i -D @tmp7/divless-html-watcher

Next, setup a watcher script.
package.json
json
...
"scripts": {
    "divless": "divless watch"
},
...

Run the following to start divless HTML watcher :
bash
npm run divless

Next, create a .divless folder and put your divless HTML formatted file inside. When the watcher is running, everytime you save a html file, it will convert and create the HTML file just outside the .divless folder.
plaintext
/.divless
  index.html
index.html

Note that divless HTML watcher is a one way converter, so make sure to commit the .divless folder in your project repository.
series_divless_html

Comments

Thank You

for your visit