mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 14:37:21 +01:00
working prototype
This commit is contained in:
19
utils.js
Normal file
19
utils.js
Normal 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
|
||||
};
|
||||
Reference in New Issue
Block a user