{"id":22374507,"url":"https://github.com/kevcui/varman","last_synced_at":"2026-05-06T10:33:28.862Z","repository":{"id":132198090,"uuid":"177333498","full_name":"KevCui/varman","owner":"KevCui","description":":guardsman: A script to generate postman/newman global variable json from human readable yaml file","archived":false,"fork":false,"pushed_at":"2020-07-21T12:17:19.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T06:53:36.415Z","etag":null,"topics":["bash","newm","postman"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/KevCui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-23T19:50:10.000Z","updated_at":"2025-10-03T22:07:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"b95d45a1-00f6-47ec-b9c7-e592e4ecbb13","html_url":"https://github.com/KevCui/varman","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KevCui/varman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fvarman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fvarman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fvarman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fvarman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KevCui","download_url":"https://codeload.github.com/KevCui/varman/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fvarman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32689156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bash","newm","postman"],"created_at":"2024-12-04T21:17:19.181Z","updated_at":"2026-05-06T10:33:28.855Z","avatar_url":"https://github.com/KevCui.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# varman ![CI](https://github.com/KevCui/varman/workflows/CI/badge.svg)\n\nVarman is a script to generate global variables used by [postman](https://www.getpostman.com/) or [newman](https://github.com/postmanlabs/newman) from yaml file. Using YAML format to maintain global variables is easier and human-friendly. Sometimes, it gives you confidence to quickly change variables before execution without messing up json format. :wink:\n\n## Table of Contents\n\n- [How to use?](#how-to-use)\n  - [Usage](#usage)\n  - [Example](#example)\n- [How can I initialize yaml file?](#how-can-i-initialize-yaml-file)\n  - [1. Write yaml file from scratch](#1-write-yaml-file-from-scratch)\n  - [2. Generate yaml file from existing postman collection](#2-generate-yaml-file-from-existing-postman-collection)\n  - [3. Generate yaml file from existing postman global/environment json](#3-generate-yaml-file-from-existing-postman-globalenvironment-json)\n- [How to run tests](#how-to-run-tests)\n\n## How to use?\n\n### Usage\n\n```\nUsage:\n  ./varman.sh -i \u003cinput.yaml\u003e -o \u003coutput.json\u003e\n\nOptions\n  -i:            Input yaml file\n  -o:            Output json file\n  -h --help:     Display this help message\n```\n\n### Example\n\nGenerate `test.json` from `input.yaml`:\n\n```bash\n~$ ./varman.sh -i test/input.yaml -o test.json\n```\n\nUse generated `test.json` in newman execution:\n\n```bash\n~$ newman run \u003ccollection.json\u003e -g test.json --export-globals test.json\n```\n\n## How can I initialize yaml file?\n\n### 1. Write yaml file from scratch\n\n:pencil:\n\n### 2. Generate yaml file from existing postman collection\n\n```bash\n~$ cat \u003ccollection.json\u003e | grep -oh \"{{\\w*}}\" | sort | uniq | sed -e 's/{{//;s/}}/: \"\"/'g \u003e \u003coutput\u003e.yaml\n```\n\n### 3. Generate yaml file from existing postman global/environment json\n\n```bash\n~$ cat \u003cenvironment\u003e.json | jq -r '.values[] | \"\\(.key): \\\"\\(.value)\\\"\"' \u003e \u003coutput\u003e.yaml\n```\n\n## How to run tests\n\n```bash\n~$ bats test/varman.bats\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevcui%2Fvarman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevcui%2Fvarman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevcui%2Fvarman/lists"}