Extremely simple HTML obfuscator.
npm install html-obfuscatorExtremely simple HTML obfuscator.
Inspired by snapbuilder.com.
> [!WARNING]
> Unless you are working with just plain HTML files, you probably want to use something more advanced instead.
demo.html
``html`
Hello World!
Read demo.html file and obfuscate it.
`js
const { obfuscate } = require('html-obfuscator');
const fs = require('fs');
const source = fs.readFileSync('demo.html');
const out = obfuscate(source);
`
Result:
`html`
```
html-obfuscator
If the argument is a path and exists, it will be used, otherwise the arguments themselves will be treated as HTML and obfuscated.
MIT