@qiwi/uniconfig-plugin-dotenv
TypeScript icon, indicating that this package has built-in type declarations

3.5.12 • Public • Published

@qiwi/uniconfig-plugin-dotenv

Uniconfig dotenv parser plugin

Install

  npm i @qiwi/uniconfig-plugin-dotenv
  yarn add @qiwi/uniconfig-plugin-dotenv

Usage

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'  

Package Sidebar

Install

npm i @qiwi/uniconfig-plugin-dotenv

Weekly Downloads

3

Version

3.5.12

License

MIT

Unpacked Size

6.49 kB

Total Files

9

Last publish

Collaborators

  • antongolub
  • qiwibot