ipull
Version:
The only file downloader you'll ever need. For node.js and the browser, CLI and library for fast and reliable file downloads.
7 lines • 345 B
JavaScript
import { fileURLToPath } from "url";
import path from "path";
import fs from "fs-extra";
export const __dirname = fileURLToPath(new URL(".", import.meta.url));
export const packageJson = await fs.readJSON(path.join(__dirname, "..", "package.json"));
export const DB_PATH = path.join(__dirname, "..", "db.json");
//# sourceMappingURL=const.js.map