{"id":14063543,"url":"https://github.com/tosoikea/PSTemplating","last_synced_at":"2025-07-29T15:34:03.068Z","repository":{"id":39664213,"uuid":"228450852","full_name":"tosoikea/PSTemplating","owner":"tosoikea","description":"PowerShell tool for generating values out of given schemes.","archived":false,"fork":false,"pushed_at":"2022-05-31T19:04:06.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-13T07:05:13.527Z","etag":null,"topics":["generation","powershell","substitution","template"],"latest_commit_sha":null,"homepage":"https://www.powershellgallery.com/packages/PSTemplating/0.2.0","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tosoikea.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-16T18:35:13.000Z","updated_at":"2024-05-18T14:19:31.000Z","dependencies_parsed_at":"2022-09-20T07:11:43.156Z","dependency_job_id":null,"html_url":"https://github.com/tosoikea/PSTemplating","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tosoikea%2FPSTemplating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tosoikea%2FPSTemplating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tosoikea%2FPSTemplating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tosoikea%2FPSTemplating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tosoikea","download_url":"https://codeload.github.com/tosoikea/PSTemplating/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228028481,"owners_count":17858340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generation","powershell","substitution","template"],"created_at":"2024-08-13T07:03:23.419Z","updated_at":"2024-12-04T01:30:59.874Z","avatar_url":"https://github.com/tosoikea.png","language":"PowerShell","readme":"# PSTemplating\n\nThe PSTemplating module provides a simple way of generating values based on a schema (template) and variable bindings.\nDetails about the usage can be found inside the **Wiki**.\n\n## Installation\n\n```powershell\nInstall-Module PSTemplating\n```\n\n## Basic Usage\n\nWhile this module can be used for basic substitution of variables with concise values, it's real worth lies within the generation of values based on operations and failovers.\n\n### Basic Substitution\n\n```powershell\nConvertFrom-Schema -Schema \"{firstName}.{lastName}\" -InputObject @{\n    \"FirstName\" = \"Max-Test\"\n    \"LastName\" = \"Mustermann\"\n}\n```\n\n```powershell\nMax-Test.Mustermann\n```\n\n### Basic Operations\n\n```powershell\nConvertFrom-Schema -Schema \"{firstName(lower)(split)}.{lastName(lower)}\" -InputObject @{\n    \"FirstName\" = \"Max-Test\"\n    \"LastName\" = \"Mustermann\"\n}\n```\n\n```powershell\nmax.mustermann\ntest.mustermann\n```\n\n### Basic Failover\n\n```powershell\nConvertFrom-Schema -Schema \"{firstName(lower)(split)(?countUp[1,3])}.{lastName(lower)}\" -InputObject @{\n    \"FirstName\" = \"Max-Test\"\n    \"LastName\" = \"Mustermann\"\n}\n```\n\n```powershell\nmax.mustermann\ntest.mustermann\nmax1.mustermann\nmax2.mustermann\nmax3.mustermann\ntest1.mustermann\ntest2.mustermann\ntest3.mustermann\n```\n\n### Disjunctive Operation Group\n\n```powershell\nConvertFrom-Schema -Schema \"ext-{firstName(lower)(split)(sel[0]|sel[0,1]|sel[0,2])}.{lastName(lower)}\" -InputObject @{\n    \"FirstName\" = \"Max-Test\"\n    \"LastName\" = \"Mustermann\"\n}\n```\n\n```powershell\next-m.mustermann\next-t.mustermann\next-ma.mustermann\next-te.mustermann\next-mx.mustermann\next-ts.mustermann\n```\n\n### Conjunctive Operation Group\n\n```powershell\nConvertFrom-Schema -Schema \"{lastName(?replace[$, ]\u0026countUp[1,3])}, {firstName}\" -InputObject @{\n    \"FirstName\" = \"Max-Test\"\n    \"LastName\" = \"Mustermann\"\n}\n```\n\n```powershell\nMustermann, Max-Test\nMustermann 1, Max-Test\nMustermann 2, Max-Test\nMustermann 3, Max-Test\n```\n\n## Authors\n\n- **Torben Soennecken**\n","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftosoikea%2FPSTemplating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftosoikea%2FPSTemplating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftosoikea%2FPSTemplating/lists"}