Detalhes do pacote

@qiwi/uniconfig-plugin-dot

qiwi126MIT3.5.6

Uniconfig doT template plugin

universal config, unified config

readme (leia-me)

@qiwi/uniconfig-plugin-dot

Uniconfig doT template plugin.

Install

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

Usage

import uniconfig, {rollupPlugin} from '@qiwi/uniconfig-core'
import uniconfigPluginDot from '@qiwi/uniconfig-plugin-dot'

rollupPlugin(uniconfigPluginDot)
const config = uniconfig({
   data: {
     template: '{{=it.foo}}-bar-{{=it.baz}}',
     data: {
       foo: 'FOO',
       baz: 'BAZ'
     }
   },
   mode: 'sync',
   pipeline: 'dot'
 }) 

config.get() // 'FOO-bar-BAZ'