]> git.r.bdr.sh - rbdr/dasein/blobdiff - bin/dasein.js
Initial Setup (#1)
[rbdr/dasein] / bin / dasein.js
diff --git a/bin/dasein.js b/bin/dasein.js
new file mode 100755 (executable)
index 0000000..10edfc3
--- /dev/null
@@ -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();