1.0.4 • Published 2 years ago
ngrok-address v1.0.4
Purpose
This allows you to dynamically set ngrok urls in your node.js apps. This allows you to use the free version of ngrok without constantly updating the urls each time 'ngrok http ' is run.
How to use
Run your server and connect it to ngrok
ngrok http <port>
At the top of your index.mjs import ngrok-address
import ngrokaddress from 'ngrok-address';
Example of how to use if on port 8080
import ngfrokaddress from 'ngrok-address';
ngrokaddress(8800).then(response => console.log(response));