aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dead_drop.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/dead_drop.js b/bin/dead_drop.js
new file mode 100755
index 0000000..0aacb31
--- /dev/null
+++ b/bin/dead_drop.js
@@ -0,0 +1,20 @@
+#!/usr/bin/env node
+'use strict';
+
+const Config = require('../config/config');
+const DeadDrop = require('..');
+
+const internals = {};
+
+internals.deadDrop = new DeadDrop(Config);
+
+internals.main = () => {
+
+ internals.deadDrop.run().catch((err) => {
+
+ console.error(err.stack || err.message || err);
+ process.exit(1);
+ });
+};
+
+internals.main();