From c137933a00438c7a1f52598e718a440f00e9c4b7 Mon Sep 17 00:00:00 2001 From: Richard Remer Date: Tue, 15 Sep 2015 19:01:47 -0700 Subject: [PATCH] CLI script and some dependencies --- bin/smtp2http.js | 10 ++++++++++ package.json | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 bin/smtp2http.js diff --git a/bin/smtp2http.js b/bin/smtp2http.js new file mode 100644 index 0000000..437ec72 --- /dev/null +++ b/bin/smtp2http.js @@ -0,0 +1,10 @@ +var squabble = require("squabble").createParser(), + args; + +// setup CLI argument parsing +squabble.shortOpts().longOpts().stopper() + .required("ENDPOINT"); + +// parse arguments +args = squabble.parse(); + diff --git a/package.json b/package.json index bc92f65..3903a7d 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,16 @@ "version": "0.0.1", "description": "SMTP to HTTP gateway", "main": "index.js", + "bin": { + "smtp2http": "./bin/smtp2http.js" + }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, + "dependencies": { + "smtp-protocol": "^2", + "squabble": "^1" + }, "repository": { "type": "git", "url": "https://github.com/Zingle/smtp2http.git"