secure-serve

1.1.0 • Public • Published

Serve local file securely online

Serve a file using localtunnel with randomly generated authorization token.

This allows downloading the file elsewhere on the internet with Authorization header or ?t=... query parameter. Useful for passing content to a server or to another user on the internet without uploading the file.

NOTE: DO NOT USE url-token or auth-token options for highly sensitive content. Using these options payload is transferred plain text through localtunnel.me.

Installation:

$ npm install -g secure-serve

Usage:

Usage
  $ secure-serve <file>

Options
  --port, -p        Port number to serve through on localhost
  --url-token, -u   Allow authorizing via ?t=... URL parameter
  --auth-token, -a  Allow authorizing using header 'Authorization: Bearer xxx'

Examples
  $ secure-serve content.json

/secure-serve/

    Package Sidebar

    Install

    npm i secure-serve

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    41.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • alizbazar