CLI script and some dependencies
This commit is contained in:
parent
67b11c89bc
commit
c137933a00
10
bin/smtp2http.js
Normal file
10
bin/smtp2http.js
Normal 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();
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user