aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@eficode.com>2019-02-12 14:28:33 +0200
committerJan Tuomi <jan.tuomi@eficode.com>2019-02-12 14:28:44 +0200
commitc558a234b8564b04d26639549506ec4063f2b00a (patch)
tree46f43464b2d99e1c6ecef3cff65827a14c50685a /README.md
parent586b29c82735d86615d96cd9cf0e9e9297922407 (diff)
Add deps and implement index.jsmaster
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!'"