Demo for query storing
Change-Id: I947bcac841992c3f6cfd01ab337c265b0d01cb70
diff --git a/node_modules/imagemin-svgo/index.js b/node_modules/imagemin-svgo/index.js
new file mode 100644
index 0000000..6447b91
--- /dev/null
+++ b/node_modules/imagemin-svgo/index.js
@@ -0,0 +1,18 @@
+'use strict';
+const isSvg = require('is-svg');
+const SVGO = require('svgo');
+
+module.exports = options => buffer => {
+ options = Object.assign({multipass: true}, options);
+
+ if (!isSvg(buffer)) {
+ return Promise.resolve(buffer);
+ }
+
+ if (Buffer.isBuffer(buffer)) {
+ buffer = buffer.toString();
+ }
+
+ const svgo = new SVGO(options);
+ return svgo.optimize(buffer).then(result => Buffer.from(result.data));
+};