Uniconfig dotenv parser plugin
npm i @qiwi/uniconfig-plugin-dotenv
yarn add @qiwi/uniconfig-plugin-dotenv
Imagine ./some.env
FOO=BAR
BAZ=QUX
import Config, {rollupPlugin} from '@qiwi/uniconfig-core'
import uniconfigPluginDotenv from '@qiwi/uniconfig-plugin-dotenv'
rollupPlugin(uniconfigPluginDotenv)
const config = new Config('./some.env', {mode: SYNC, pipeline: 'file>dotenv'})
config.get('FOO') // 'BAR'