Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 472 Bytes

File metadata and controls

22 lines (16 loc) · 472 Bytes

@qiwi/uniconfig-plugin-argv

Script args reader plugin.

Install

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

Usage

// node yourapp/run.js --foo=bar

import uniconfig, {rollupPlugin} from '@qiwi/uniconfig-core'
import uniconfigPluginArgv from '@qiwi/uniconfig-plugin-argv'
    
rollupPlugin(uniconfigPluginArgv)
const config = uniconfig({pipeline: 'argv', mode: 'sync'}) 

config.get('foo') // 'bar'