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