mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 14:37:21 +01:00
20 lines
316 B
JavaScript
20 lines
316 B
JavaScript
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
|
|
};
|