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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i @redmunroe/tfvars

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

17.3 kB

Total Files

11

Last publish

Collaborators

  • redmunroe