Exports the path to the user's config directory. Cross-platform; extracted from Yeoman's configstore.
const root = require('config-root')
// Most likely ~/.config or C:\Users\username\.config
console.log(root)
With npm do:
npm install config-root
BSD-2-Clause © ironSource. Original work © Google.