aboutsummaryrefslogtreecommitdiff
path: root/lib/utils.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2017-01-14 23:13:48 -0600
committerMatt Godbolt <matt@godbolt.org>2017-01-14 23:24:31 -0600
commit23efc05167be188b5fea74c581cbeee12a384062 (patch)
treedd9ee64e702d7bd096468c2428a74a742822c780 /lib/utils.js
parentfe4467756ff01d79f3e90b3986e80cf0dec6da96 (diff)
downloadcompiler-explorer-23efc05167be188b5fea74c581cbeee12a384062.tar.gz
compiler-explorer-23efc05167be188b5fea74c581cbeee12a384062.zip
New RESTful API
Partially addresses #179 and begins opening the door to #203.
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js
index d590f5e73..8bc0ba59b 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -66,4 +66,11 @@ function parseOutput(lines, inputFilename) {
return result;
}
-exports.parseOutput = parseOutput; \ No newline at end of file
+exports.parseOutput = parseOutput;
+
+function padRight(name, len) {
+ while (name.length < len) name = name + ' ';
+ return name;
+}
+
+exports.padRight = padRight; \ No newline at end of file