11 lines
250 B
JavaScript
11 lines
250 B
JavaScript
const path = require("node:path");
|
|
const fs = require("node:fs");
|
|
|
|
module.exports = {
|
|
"check_install": function (directory) {
|
|
return new Promise(function (resolve, reject) {
|
|
resolve(fs.existsSync(path.join(directory, "versions")));
|
|
});
|
|
}
|
|
};
|