refactoring

This commit is contained in:
nightness 2021-11-10 18:01:49 -06:00
parent db3d2d8680
commit 9cdc73d5ba
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
# ngrok-to-dotenv # ngrok-to-dotenv
This is a ngrok start-up wrapper that uses a dotenv file to get the authtoken and save the https address; it's a node cli tool that you can use with projects that need ngrok. You clone it into your project's folder, and add to the project's package.json a run script to call "cd ngrok-to-dotenv && node ngrok". Be sure to add the folder to your .gitignore and install the one package which is ngrok, using 'npm i' or 'yarn'. This is a ngrok start-up wrapper that uses a dotenv file (at '../.env' relative to this project's folder) to get the authtoken and save the https address; it's a node cli tool that you can use with projects that need ngrok. You clone it into your project's folder, and add to the project's package.json a run script to call "cd ngrok-to-dotenv && node ngrok". Be sure to add the folder to your .gitignore and install the one package which is ngrok and command-line-args, using 'npm i' or 'yarn'.

View File

@ -5,8 +5,8 @@ const { exec } = require("child_process");
const dotenvFile = "../.env"; const dotenvFile = "../.env";
const optionDefinitions = [ const optionDefinitions = [
{ name: "proto", type: String }, { name: "proto", alias: 'p', type: String },
{ name: "addr", type: Number }, { name: "addr", alias: 'a', type: Number },
]; ];
const commandLineArgs = require("command-line-args"); const commandLineArgs = require("command-line-args");