UNPKG

@helios-chain-labs/helios-cli

Version:
15 lines (13 loc) 413 B
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;