Skip to content

thesaas-company/terraform-type-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-type-parser

A library to convert Terraform types to readable formats.

Installation

npm install terraform-type-parser

Usage

import { TerraformTypeConverter } from 'terraform-type-parser';

const terraformString = "${list(object({\n open_id_url = string\n open_id_arn = string\n service_name = string\n namespace = string\n }))}";
const result = TerraformTypeConverter.parseTerraformString(terraformString);
console.log(result);