insomnia-plugin-valorant
Version:
Adds template tags to Insomnia with Valorant data
20 lines • 783 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.readLockfile = void 0;
const node_fs_1 = require("node:fs");
const node_path_1 = __importDefault(require("node:path"));
async function readLockfile() {
const split = (await node_fs_1.promises.readFile(node_path_1.default.join(process.env['LOCALAPPDATA'] ?? '', 'Riot Games\\Riot Client\\Config\\lockfile'), 'utf-8')).split(':');
return {
name: split[0],
pid: split[1],
port: split[2],
password: split[3],
protocol: split[4]
};
}
exports.readLockfile = readLockfile;
//# sourceMappingURL=read-lockfile.js.map