0.1.1 • Published 1 year ago

@dwidge/ngrok-tunnel v0.1.1

Weekly downloads
-
License
BSL-1.0
Repository
github
Last release
1 year ago

ngrok-tunnel

Run command with ngrok url passed as env.

install

global

$ npm install -g @dwidge/ngrok-tunnel

project

Yarn

$ yarn add @dwidge/ngrok-tunnel

NPM

$ npm install @dwidge/ngrok-tunnel

package.json

{
  "scripts": {
    "start": "node index.js",
    "tunnel": "ngrok-tunnel -p 3000 npm run"
  },
  "dependencies": {
    "@dwidge/ngrok-tunnel": "*"
  }
}
$ npm run tunnel start

local clone

$ npm install -g file:.

usage

$ NGROK_AUTHTOKEN=abc ngrok-tunnel -p 3000 node -e "console.log('NGROK_URL', process.env.NGROK_URL)"

Starts ngrok with NGROK_AUTHTOKEN environment variable. Runs command with NGROK_URL environment variable set to external url.

license

Copyright DWJ 2024.
Distributed under the Boost Software License, Version 1.0.
https://www.boost.org/LICENSE_1_0.txt

0.1.1

1 year ago

0.1.0

1 year ago