{"id":16673790,"url":"https://github.com/patinthehat/licensegen","last_synced_at":"2026-05-21T04:36:18.348Z","repository":{"id":35532432,"uuid":"39803373","full_name":"patinthehat/licensegen","owner":"patinthehat","description":"Easily generate LICENSE files for new open source projects, comes with built-in OSS licenses such as MIT.","archived":false,"fork":false,"pushed_at":"2015-08-14T18:13:46.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T22:43:43.110Z","etag":null,"topics":["apache-license-2","go-application","golang","gpl","gplv2","gplv3","mit-license","mpl2","oss","oss-licenses"],"latest_commit_sha":null,"homepage":"","language":"Go","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/patinthehat.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}},"created_at":"2015-07-27T23:45:01.000Z","updated_at":"2017-03-10T18:12:16.000Z","dependencies_parsed_at":"2022-08-28T18:02:04.484Z","dependency_job_id":null,"html_url":"https://github.com/patinthehat/licensegen","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/patinthehat/licensegen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flicensegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flicensegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flicensegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flicensegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patinthehat","download_url":"https://codeload.github.com/patinthehat/licensegen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flicensegen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33288903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: 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":["apache-license-2","go-application","golang","gpl","gplv2","gplv3","mit-license","mpl2","oss","oss-licenses"],"created_at":"2024-10-12T12:28:10.470Z","updated_at":"2026-05-21T04:36:18.329Z","avatar_url":"https://github.com/patinthehat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## licensegen ##\n---\n\n`licensegen` is a small utility for both linux and windows that generates a LICENSE file for new open source projects.  It [comes with](#available-licenses) templates for several of the most popular OSS licenses.\n\n`licensegen` generates both a LICENSE file containing the text of the selected OSS license and a file containing a comment header for source files.\n\n---\n#### Compilation/Installation ####\n---\n\n  - `$ git clone https://github.com/patinthehat/licensegen.git`\n  - `$ cd licensegen`\n  - `$ make`\n  - [Configuration](#configuration) \n  - [Usage](#usage) / [Usage Examples](#usage-examples) \n\n---\n#### Configuration ####\n---\n\nAfter cloning the repository, you must create a configuration file for `licensegen` to read settings from, i.e. you name or email address.\n\nHere is a default `licensegen.json`:\n\n```json\n{ \n   \"Author\": {\n    \"FirstName\":\"firstname\",\n    \"LastName\":\"lastname\",\n    \"EmailAddress\":\"user@example.com\",\n    \"Website\":\"http://www.example.com\"\n   },\n\n  -- snip --\n\n```\n\nModify the settings to match your personal details.\nYou may leave Email Address and/or Website empty and it will not appear in the generated output.\n\n##### Adding a new license #####\nTo make a new license template available, you must:\n\n  - Create a `NAME.license` file in the `licenses/` directory, containing the contents of the license with variables such as Year replaced with the appropriate go template variable.  _See existing license templates for available template variables._\n  - Create a `NAME.header` file in the `licenses/` directory, also with the appropriate template variables.\n  - Add a new entry to `licensegen.json`, under \"Licenses\": \n```json\n{ \"Name\": \"NAME\", \"LicenseFile\":\"licenses/NAME.license\", \"HeaderFile\":\"licenses/NAME.header\" }\n```\n\n---\n#### Usage ####\n---\n\nUsing licensegen is fairly simple.  After compiling, run \n`$ licensegen --list` \nto list which license templates are available.  Next, run \n`$ licensegen --license [license-name]`.\n\nThis will generate a `LICENSE` file and a `LICENSE_FILE_HEADER` file into the current directory.\n\nThe `LICENSE` file contains the selected license with name, email, website, copyright year, etc. completed according to your `licensegen.json` configuration.\n\nThe `LICENSE_FILE_HEADER` file contains a commented header to insert at the top of each file in your project.\n\n---\n#### Usage Examples ####\n---\n\n  - `$ licensegen --list`\n  - `$ licensegen --license MIT`\n  - `$ licensegen MIT`\n  - `$ licensegen Apache-2.0`\n\n---\n#### Available Licenses ####\n---\n\n  - Apache 2.0\n  - GPL 2.0\n  - GPL 3.0\n  - MIT\n  - MPL 2.0\n  - None (simple copyright)\n\n---\n#### @todo ####\n---\n\n  - ~~complete the README~~\n  - ~~add README entry to explain how to add new license templates~~\n  - ~~add more license templates~~\n  - add interactive mode when started with -i flag\n\n---\n#### Licensing ####\n---\n\n`licensegen` is open source software, available under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatinthehat%2Flicensegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatinthehat%2Flicensegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatinthehat%2Flicensegen/lists"}