{"id":15436036,"url":"https://github.com/uetchy/license","last_synced_at":"2026-03-02T04:32:46.376Z","repository":{"id":138510497,"uuid":"168467298","full_name":"uetchy/license","owner":"uetchy","description":"A simple zsh function generates LICENSE file.","archived":false,"fork":false,"pushed_at":"2019-01-31T05:23:43.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T19:27:45.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uetchy.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-01-31T05:17:35.000Z","updated_at":"2021-10-26T23:06:01.000Z","dependencies_parsed_at":"2023-03-16T19:15:32.219Z","dependency_job_id":null,"html_url":"https://github.com/uetchy/license","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"729040e440bf17d86f072e1aca2268883e1a0691"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uetchy/license","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uetchy%2Flicense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uetchy%2Flicense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uetchy%2Flicense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uetchy%2Flicense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uetchy","download_url":"https://codeload.github.com/uetchy/license/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uetchy%2Flicense/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29992311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":[],"created_at":"2024-10-01T18:47:49.098Z","updated_at":"2026-03-02T04:32:46.350Z","avatar_url":"https://github.com/uetchy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# license\n\nA simple zsh function generates `LICENSE` file from [license-templates](https://github.com/licenses/license-templates).\n\n## Usage\n\n```bash\nlicense \u003clicense\u003e\nlicense apache\nlicense cc0\nlicense # default to `mit`\n```\n\nSee [available licenses](https://github.com/licenses/license-templates/tree/master/templates).\n\n## Source Code\n\n```shell\nlicense() {\n  license_name=${@:-mit}\n  endpoint=\"https://raw.githubusercontent.com/licenses/license-templates/master/templates/${license_name}.txt\"\n\n  year=$(date +%Y)\n  username=$(git config user.name)\n  email=$(git config user.email)\n  organization=\"${username} \u003c${email}\u003e\"\n\n  license_body=$(curl -s ${endpoint})\n  if [ $? != 0 ] || [ $license_body = \"404: Not Found\" ]; then\n    echo \"No such license: ${@}\"\n    return\n  fi\n\n  license_body=${license_body//\"{{ year }}\"/${year}}\n  license_body=${license_body//\"{{ organization }}\"/${organization}}\n  echo ${license_body} \u003e/dev/stdout \u003eLICENSE\n  echo \"\\nSaved to ./LICENSE\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuetchy%2Flicense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuetchy%2Flicense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuetchy%2Flicense/lists"}