aboutsummaryrefslogtreecommitdiff
path: root/src/modules/version.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/version.js')
-rw-r--r--src/modules/version.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/version.js b/src/modules/version.js
index 652ffc5..6195cad 100644
--- a/src/modules/version.js
+++ b/src/modules/version.js
@@ -76,4 +76,11 @@ version.titanfall = () => {
}
}
+// returns Viper's current version, taken from `package.json`
+version.viper = () => {
+ return json(
+ path.join(__dirname, "../../package.json")
+ ).version;
+}
+
module.exports = version;