aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..7bd7688
--- /dev/null
+++ b/README.md
@@ -0,0 +1,19 @@
+# http-listener
+
+Small HTTP server for running a specified shell command upon request. Done for u/stamas on Reddit for the post https://www.reddit.com/r/npm/comments/apri9v/js_library_to_run_shell_command_on_http_request/.
+
+## Instructions
+
+Clone the repo and install deps
+
+ git clone https://github.com/jantuomi/http-listener
+ cd http-listener
+ npm i
+
+Install the command line tool globally
+
+ npm i -g .
+
+Run anywhere
+
+ http-listener -p 8080 --method GET --path /a/b --exec "echo 'request received!'"