0.0.1 • Published 10 months ago

@redmunroe/tfvars v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

tfvars

javascript / typescript library for programatically producing tfvars file

install

npm i @RedMunroe/tfvars

import

import tfvars from '@RedMunroe/tfvars';

usage

new TFVars()
  .addString('name', 'test')
  .addNumber('age', 12)
  .addBoolean('isTrue', true)
  .addMap(
    'map',
    new Map().set('name', 'test').set('age', 12).set('isTrue', true),
  )
  .addList('list', [
    {
      name: 'test',
    },
  ])
  .stdout();
name = "test"
age = 12
isTrue = true
map = object({
   name = "test"
   age = 12
   isTrue = true
})
list = [
object({
   name = "test"
})
]