{"id":15598266,"url":"https://github.com/boneskull/egad","last_synced_at":"2025-10-13T10:31:19.286Z","repository":{"id":66095395,"uuid":"90238212","full_name":"boneskull/egad","owner":"boneskull","description":"Compile a Git repo full of Handlebars templates","archived":true,"fork":false,"pushed_at":"2017-05-18T06:25:10.000Z","size":21,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T10:35:02.093Z","etag":null,"topics":["download","generator","git","handlebars","handlebars-template","scaffold","scaffolding","templates"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boneskull.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":"2017-05-04T08:13:13.000Z","updated_at":"2025-01-01T20:22:28.000Z","dependencies_parsed_at":"2023-04-18T14:01:13.340Z","dependency_job_id":null,"html_url":"https://github.com/boneskull/egad","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/boneskull/egad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boneskull%2Fegad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boneskull%2Fegad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boneskull%2Fegad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boneskull%2Fegad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boneskull","download_url":"https://codeload.github.com/boneskull/egad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boneskull%2Fegad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014647,"owners_count":26085555,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["download","generator","git","handlebars","handlebars-template","scaffold","scaffolding","templates"],"created_at":"2024-10-03T01:33:26.599Z","updated_at":"2025-10-13T10:31:19.270Z","avatar_url":"https://github.com/boneskull.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egad\n\n\u003e Compile a Git repo full of Handlebars templates\n\n## Basic Usage\n\n```js\nconst {scaffold} = require('egad');\n\nscaffold('https://github.com/\u003cyour\u003e/\u003crepo\u003e', '/path/to/destination/dir', {\n  some: 'data',\n  forYour: 'templates'\n}, {\n  // default options\n  overwrite: true,\n  offline: false,\n  remote: 'origin',\n  branch: 'master'\n})\n  .then(filepaths =\u003e {\n    console.log(`Wrote files: ${filepaths}`);\n  })\n```\n\nThe *entire repository* at the given URL will be inspected for Handlebars templates, and those templates will be rendered at the corresponding path under your destination directory.  Files *not* containing Handlebars templates will simply be copied.\n\nIf destination is omitted, it will default to the current working directory.\n\n## Details\n\n- Repos are stored in the user's XDG cache dir, or whatever XDG cache dir is available, or a temp dir as a last resort.\n- If `offline` is `false`, the repo will be either cloned or updated (if a working copy already exists).\n- If `offline` is `true` and the repo does not already exist, then you get an rejected `Promise`.\n- Use environment variable `DEBUG=egad` to see debug output\n- Requires a `git` executable\n- **Requires Node.js v6 or greater**\n\n## Known Issues\n\n- Does not copy binary files\n- No \"errback\"-style interface\n- How about writing some tests?\n\n## License\n\n© 2017 [Christopher Hiller](https://boneskull.com).  Licensed Apache-2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboneskull%2Fegad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboneskull%2Fegad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboneskull%2Fegad/lists"}