Demo for query storing

Change-Id: I947bcac841992c3f6cfd01ab337c265b0d01cb70
diff --git a/node_modules/bin-version/index.js b/node_modules/bin-version/index.js
new file mode 100644
index 0000000..303e996
--- /dev/null
+++ b/node_modules/bin-version/index.js
@@ -0,0 +1,15 @@
+'use strict';
+const execa = require('execa');
+const findVersions = require('find-versions');
+
+module.exports = (binary, options = {}) => {
+	return execa(binary, options.args || ['--version'])
+		.then(result => findVersions(result.stdout || result.stderr, {loose: true})[0])
+		.catch(error => {
+			if (error.code === 'ENOENT') {
+				error.message = `Couldn't find the \`${binary}\` binary. Make sure it's installed and in your $PATH.`;
+			}
+
+			throw error;
+		});
+};