UNPKG

haven-secrets-core

Version:

Core for Haven, the easy to use centralized secrets manager.

12 lines (9 loc) 320 B
import fs from "fs"; import havenDir from "./havenDir.js"; const hiddenAccountFilePath = `${havenDir}/havenAccountInfo.json`; const fetchHavenAccountInfo = () => { if (fs.existsSync(hiddenAccountFilePath)) { return JSON.parse(fs.readFileSync(hiddenAccountFilePath)); } }; export default fetchHavenAccountInfo;