@redmunroe/tfvars
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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"
})
]

/@redmunroe/tfvars/

    Package Sidebar

    Install

    npm i @redmunroe/tfvars

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    17.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • redmunroe