UNPKG

@technovangelist/do

Version:

something to help me remember what I did

13 lines (12 loc) 399 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Config = require("conf"); const conf = new Config({ projectName: "technovangelistdo" }); exports.getDoFile = () => { let doFile = conf.get("doFile"); if (!doFile) { const homedir = require('os').homedir(); conf.set('doFile', `${homedir}/dofile.json`); } return conf.get("doFile"); };