{"id":24489969,"url":"https://github.com/realorko/nodejs-handlebars-cli","last_synced_at":"2025-03-15T01:22:41.036Z","repository":{"id":42246463,"uuid":"282662821","full_name":"RealOrko/nodejs-handlebars-cli","owner":"RealOrko","description":"A nodejs cli for transforming handlebars templates using yml files as input","archived":false,"fork":false,"pushed_at":"2022-12-06T20:50:58.000Z","size":200,"stargazers_count":2,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T17:16:38.231Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RealOrko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-26T14:07:54.000Z","updated_at":"2023-09-30T14:18:12.000Z","dependencies_parsed_at":"2023-01-24T00:45:51.876Z","dependency_job_id":null,"html_url":"https://github.com/RealOrko/nodejs-handlebars-cli","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/RealOrko%2Fnodejs-handlebars-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrko%2Fnodejs-handlebars-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrko%2Fnodejs-handlebars-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrko%2Fnodejs-handlebars-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RealOrko","download_url":"https://codeload.github.com/RealOrko/nodejs-handlebars-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243669078,"owners_count":20328190,"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":[],"created_at":"2025-01-21T17:16:40.771Z","updated_at":"2025-03-15T01:22:41.008Z","avatar_url":"https://github.com/RealOrko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Handlebars CLI\n\nA simple implementation of a handlebars CLI with globbing capabilities. \n\n## Prerequisites\n\nYou must make sure you have the following pre-requisites installed:\n\n - [nodejs](https://nodejs.org/en/download/package-manager/)\n\n\n#### Using source\n\n```\ngit clone https://github.com/RealOrko/handlebars-cli.git \u0026\u0026 cd handlebars-cli \u0026\u0026 npm install -g . \u0026\u0026 hb --help\n```\n\n#### Using npm\n\n```\nnpm install https://github.com/RealOrko/nodejs-handlebars-cli.git -g --force\n```\n\n#### Using package\n\nOr alternatively you can use the latest [published package](https://github.com/RealOrko/nodejs-handlebars-cli/packages/).\n\n## Guide\n\n\u003ca href=\"https://handlebarsjs.com/guide/\" target=\"_blank\"\u003ehandlebarsjs.com/guide\u003c/a\u003e\n\n## Examples\n\nAll examples can be run from the root folder for where this repository is checked out.\n\nTo see the effects of:\n - One template to one input\n - Many templates to one input\n - One template to many inputs\n - Many templates to many inputs\n\nPlease run `test/test.sh` and navigate to the output in `build/`.\n\n#### Help\n\n```\nhb --help\n```\n\n#### Single transform\n\n```\nhb -t examples/bands.yml.hbs -i examples/bands.yml -o build/single-template-with-single-input-with-file-output/bands.yml\nhb -t examples/fruits.yml.hbs -i examples/fruits.yml -o build/single-template-with-single-input-with-file-output/fruits.yml\n```\n\n#### Single transform (stdout)\n\n```\nhb -t examples/bands.yml.hbs -i examples/bands.yml -s true \u003e build/single-template-with-single-input-with-std-output/bands.yml\nhb -t examples/fruits.yml.hbs -i examples/fruits.yml -s true \u003e build/single-template-with-single-input-with-std-output/fruits.yml\n```\n\n#### Single template transform with glob inputs\n\n```\nhb -t examples/bands.yml.hbs -i examples/**/*.yml -o build/single-template-with-glob-input-with-file-output/bands.yml\nhb -t examples/fruits.yml.hbs -i examples/**/*.yml -o build/single-template-with-glob-input-with-file-output/fruits.yml\n```\n\n\n#### Single template transform with glob inputs (stdout)\n\n```\nhb -t examples/bands.yml.hbs -i examples/**/*.yml -s true \u003e build/single-template-with-glob-input-with-std-output/bands.yml\nhb -t examples/fruits.yml.hbs -i examples/**/*.yml -s true \u003e build/single-template-with-glob-input-with-std-output/fruits.yml\n```\n\n#### Multiple template transform with single input\n\n```\nhb -t examples/**/*.yml.hbs -i examples/all.yml -o build/glob-template-with-single-input-with-file-output/bands.yml\nhb -t examples/**/*.yml.hbs -i examples/all.yml -o build/glob-template-with-single-input-with-file-output/fruits.yml\n```\n\n#### Multiple template transform with single input (stdout)\n\n```\nhb -t examples/**/*.yml.hbs -i examples/all.yml -s true \u003e build/glob-template-with-single-input-with-std-output/bands.yml\nhb -t examples/**/*.yml.hbs -i examples/all.yml -s true \u003e build/glob-template-with-single-input-with-std-output/fruits.yml\n```\n\n#### Multiple template transform with multiple inputs\n\n```\nhb -t examples/**/*.yml.hbs -i examples/**/*.yml -o build/glob-template-with-glob-input-with-file-output/bands.yml\nhb -t examples/**/*.yml.hbs -i examples/**/*.yml -o build/glob-template-with-glob-input-with-file-output/fruits.yml\n```\n\n#### Multiple template transform with multiple inputs (stdout)\n\n```\nhb -t examples/**/*.yml.hbs -i examples/**/*.yml -s true \u003e build/glob-template-with-glob-input-with-std-output/bands.yml\nhb -t examples/**/*.yml.hbs -i examples/**/*.yml -s true \u003e build/glob-template-with-glob-input-with-std-output/fruits.yml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealorko%2Fnodejs-handlebars-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealorko%2Fnodejs-handlebars-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealorko%2Fnodejs-handlebars-cli/lists"}