Publish HTML files and get shareable links. Uses Surge.sh under the hood.
npm install -g htmldropYou'll also need Surge installed globally (or it will use npx surge automatically):
npm install -g surgehtmldrop initThis will:
- Run
surge loginso you can authenticate - Ask you to pick a subdomain (e.g.,
my-docs) - Save config to
~/.htmldrop/config.json
htmldrop push report.htmlReturns a URL like https://my-docs.surge.sh/report.html
htmldrop push --password mysecret private-spec.htmlThe file is encrypted client-side with AES-256. Viewers must enter the password to decrypt and view the content.
htmldrop push --open report.htmlhtmldrop listhtmldrop open report.html- Files are staged in
~/.htmldrop/site/ - An
index.htmlgallery page is auto-generated listing all files - The entire site directory is deployed to Surge on each push
- Password-protected files use AES encryption via crypto-js (StatiCrypt pattern)
Stored at ~/.htmldrop/config.json:
{
"subdomain": "my-docs",
"email": "you@example.com"
}MIT