working prototype

This commit is contained in:
Thomas Ruoff
2017-02-19 00:23:16 +01:00
parent 09aca6778c
commit 8542c0bf2d
9 changed files with 55087 additions and 33 deletions

19
utils.js Normal file
View File

@@ -0,0 +1,19 @@
const path = require('path');
function getDirPath(id) {
return `/tmp/pdfer-${id}`;
}
function getDocPath(id) {
return path.join(getDirPath(id), 'doc.tex');
}
function getPdfPath(id) {
return path.join(getDirPath(id), 'doc.pdf');
}
module.exports = {
getDirPath,
getDocPath,
getPdfPath
};