diff --git a/index.mjs b/index.mjs old mode 100644 new mode 100755 index 3a24d0b..c7ccce4 --- a/index.mjs +++ b/index.mjs @@ -1,3 +1,5 @@ +#!/usr/bin/node + import Koa from "koa"; import Router from "@koa/router"; import axios from "axios"; @@ -15,3 +17,4 @@ const app = new Koa(); app.use(router.routes()); app.listen(8383); +console.log("Listening on port 8383"); diff --git a/package.json b/package.json index 3dec41c..3368f28 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, + "bin": { + "opaque-proxy": "./index.mjs" + }, "author": "", "license": "ISC", "dependencies": {