@helios-chain-labs/helios-cli
Version:
simple CLI for helios node
15 lines (13 loc) • 413 B
JavaScript
const fs = require('fs');
const path = require('path');
const os = require('os');
const getPathHelios = () => {
const homeDir = os.homedir();
const cliConfigPath = path.join(homeDir, '.helios-cli');
const pwdFilePath = path.join(cliConfigPath, 'pwd');
if (fs.existsSync(pwdFilePath)) {
return fs.readFileSync(pwdFilePath, 'utf8');
}
return null;
}
module.exports = getPathHelios;