{"size": 525, "ext": "js", "max_stars_repo_path": "src/constants.js", "max_stars_repo_name": "webceyhan/networking-models", "max_stars_repo_stars_event_min_datetime": "2022-02-11T17:26:49.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-11T17:26:49.000Z", "max_issues_repo_path": "src/constants.js", "max_issues_repo_name": "webceyhan/networking-models", "max_issues_repo_issues_event_min_datetime": "2022-02-10T15:19:15.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-23T21:02:51.000Z", "max_forks_repo_path": "src/constants.js", "max_forks_repo_name": "webceyhan/networking-models", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 35.0, "max_line_length": 73, "alphanum_fraction": 0.7447619048}
import { readFileSync } from "fs";
import { fileURLToPath } from "url";
import { dirname, join } from "path";

// these constants not available in ecma modules
// so we have to declare them with below code
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

export const rootDir = join(__dirname, "..");

// load localhost ssl certificates
export const localKey = readFileSync(rootDir + "/localhost-private.pem");
export const localCert = readFileSync(rootDir + "/localhost-cert.pem");
