1.3.2 • Published 6 months ago

html-encrypt v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

html-encrypt

A zero config (and only optional minifiers as dependencies) to encrypt html files. This is a heavy modified clone of staticrypt.

Installation

npm i html-encrypt

Execute

npx html-encrypt <path/index.html>

Note: running the command will modify the file.

Options

  • You will be asked to enter the Password

  • Additionally, you can bring in your own template. Create a .html file and reference it when asked in the CLI.

    <form method="post">
        PW: <input type="password" name="" id="">
        <button type="submit">Login</button>
    </form>
  • You can also set the password with -p

    npx html-encrypt --remove-head <path/index.html> -p <long-password>
  • You can also add --remove-head in order to remove the content of the head for the output file. This might be needed for some SPAs.

    npx html-encrypt --remove-head <path/index.html>
  • You can also add --no-minify in order to not use html-minifier-terser and esbuild.

    npx html-encrypt --no-minify <path/index.html>
  • You can also skip the optional template path with --own-template. Or combine it with a secure -p in a Pipeline.

    npx html-encrypt --own-template <path/index.html>
1.3.2

6 months ago

1.3.1

6 months ago

1.3.0

12 months ago

1.2.1

12 months ago

1.2.0

12 months ago

1.1.0

12 months ago

1.0.0

12 months ago

0.0.1

3 years ago