From 9cdc73d5ba0e3d9fd93a1a10f2af48ce37aeb041 Mon Sep 17 00:00:00 2001 From: nightness Date: Wed, 10 Nov 2021 18:01:49 -0600 Subject: [PATCH] refactoring --- README.md | 2 +- ngrok.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a6fe757..ca75fa8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # 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'. diff --git a/ngrok.js b/ngrok.js index b8f7965..a57d28c 100644 --- a/ngrok.js +++ b/ngrok.js @@ -5,8 +5,8 @@ const { exec } = require("child_process"); const dotenvFile = "../.env"; const optionDefinitions = [ - { name: "proto", type: String }, - { name: "addr", type: Number }, + { name: "proto", alias: 'p', type: String }, + { name: "addr", alias: 'a', type: Number }, ]; const commandLineArgs = require("command-line-args");