UNPKG

@jsmrcaga/keep

Version:

A simple password manager

12 lines (9 loc) 226 B
const fs = require('fs'); let config = null; module.exports = (file='./config.json') => { if(!config) { console.log('[KEEP] Reading config from', file); config = JSON.parse(fs.readFileSync(file)); } return config; };