CLI script and some dependencies

This commit is contained in:
Richard Remer 2015-09-15 19:01:47 -07:00
parent 67b11c89bc
commit c137933a00
2 changed files with 17 additions and 0 deletions

10
bin/smtp2http.js Normal file
View File

@ -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();

View File

@ -3,9 +3,16 @@
"version": "0.0.1", "version": "0.0.1",
"description": "SMTP to HTTP gateway", "description": "SMTP to HTTP gateway",
"main": "index.js", "main": "index.js",
"bin": {
"smtp2http": "./bin/smtp2http.js"
},
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"dependencies": {
"smtp-protocol": "^2",
"squabble": "^1"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/Zingle/smtp2http.git" "url": "https://github.com/Zingle/smtp2http.git"