@dwidge/ngrok-tunnel
v0.1.2
Published
Run command with ngrok url passed as env
Readme
ngrok-tunnel
Run command with ngrok url passed as env.
install
global
$ npm install -g @dwidge/ngrok-tunnelproject
Yarn
$ yarn add @dwidge/ngrok-tunnelNPM
$ npm install @dwidge/ngrok-tunnelpackage.json
{
"scripts": {
"start": "node index.js",
"tunnel": "ngrok-tunnel -p 3000 npm run"
},
"dependencies": {
"@dwidge/ngrok-tunnel": "*"
}
}$ npm run tunnel startlocal 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
