{"id":16582786,"url":"https://github.com/ribice/glice","last_synced_at":"2025-04-08T04:14:37.695Z","repository":{"id":40775671,"uuid":"112795718","full_name":"ribice/glice","owner":"ribice","description":"Go license and dependency checker","archived":false,"fork":false,"pushed_at":"2024-11-28T12:04:16.000Z","size":3660,"stargazers_count":303,"open_issues_count":3,"forks_count":22,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-01T03:35:06.519Z","etag":null,"topics":["dependency-checker","golang","license-checking"],"latest_commit_sha":null,"homepage":"https://www.ribice.ba/glice/","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/ribice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","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-12-01T23:09:30.000Z","updated_at":"2025-03-27T07:28:51.000Z","dependencies_parsed_at":"2024-06-18T15:15:49.221Z","dependency_job_id":"2ba26855-2cc6-4f66-a234-3256a92853d7","html_url":"https://github.com/ribice/glice","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribice%2Fglice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribice%2Fglice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribice%2Fglice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ribice%2Fglice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ribice","download_url":"https://codeload.github.com/ribice/glice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773719,"owners_count":20993639,"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":["dependency-checker","golang","license-checking"],"created_at":"2024-10-11T22:34:07.602Z","updated_at":"2025-04-08T04:14:37.669Z","avatar_url":"https://github.com/ribice.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glice\n\n[![Build Status](https://img.shields.io/github/workflow/status/ribice/glice/CI?style=flat-square)](https://github.com/ribice/glice/actions?query=workflow%3ACI)\n[![Coverage Status](https://coveralls.io/repos/github/ribice/glice/badge.svg?branch=master)](https://coveralls.io/github/ribice/glice?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ribice/glice)](https://goreportcard.com/report/github.com/ribice/glice)\n\nGolang license and dependency checker. Prints list of all dependencies, their URL, license and saves all the license files in /licenses.\n\n## Introduction\n\nglice analyzes the go.mod file of your project and prints it in a tabular format [csv and json available as well] - name, URL, and license short-name (MIT, GPL...). \n\n## Installation\n\nDownload and install glice by executing:\n\n```bash\n    go install github.com/ribice/glice/v2/cmd/glice\n```\n\nTo update:\n\n```bash\n    go get -u github.com/ribice/glice/v2\n```\n\n## Usage\n\nTo run glice, navigate to a folder with go.mod and execute:\n\n```bash\n    glice\n```\n\nAlternatively, you can provide path which you want to be scanned with -p flag:\n\n```bash\n    glice -p \"github.com/ribice/glice\"\n```\n\nBy default glice:\n\n- Prints to stdout\n\n- Gets dependencies from go.mod\n\n- Fetches licenses for dependencies hosted on GitHub\n  \n- Is limited to 60 API calls on GitHub (up to 60 dependencies from github.com). API key can be provided by setting `GITHUB_API_KEY` environment variable.\n\nAll flags are optional. Glice supports the following flags:\n\n```\n- f [boolean, fileWrite] // Writes all licenses to /licenses dir\n- i [boolean, indirect] // Parses indirect dependencies as well\n- p [string - path] // Path to be scanned in form of github.com/author/repo\n- t [boolean - thanks] // if GitHub API key is provided, setting this flag will star all GitHub repos from dependency. __In order to do this, API key must have access to public_repo__\n- v (boolean - verbose) // If enabled, will log dependencies before fetching and printing them.\n- fmt (string - format) // Format of the output. Defaults to table, other available options are `csv` and `json`.\n- o (string - otuput) // Destination of the output, defaults to stdout. Other option is `file`.\n```\n\nDon't forget `-help` flag for detailed usage information.\n\n## Using glice inside as a library\n\nAs of v2.0.0 glice can be used as a library and provides few functions/methods that return list of dependencies in structured format and printing to io.Writer.\n\n## Sample output\n\nExecuting glice -c on github.com/ribice/glice prints (with additional colors for links and licenses):\n\n```\n+-----------------------------------+-------------------------------------------+--------------+\n|            DEPENDENCY             |                  REPOURL                  |   LICENSE    |\n+-----------------------------------+-------------------------------------------+--------------+\n| github.com/fatih/color            | https://github.com/fatih/color            | MIT          |\n| github.com/google/go-github       | https://github.com/google/go-github       | bsd-3-clause |\n| github.com/keighl/metabolize      | https://github.com/keighl/metabolize      | Other        |\n| github.com/olekukonko/tablewriter | https://github.com/olekukonko/tablewriter | MIT          |\n| golang.org/x/mod                  | https://go.googlesource.com/mod           |              |\n| golang.org/x/oauth2               | https://go.googlesource.com/oauth2        |              |\n+-----------------------------------+-------------------------------------------+--------------+\n```\n\n## License\n\nglice is licensed under the MIT license. Check the [LICENSE](LICENSE.md) file for details.\n\n## Author\n\n[Emir Ribic](https://dev.ribic.ba)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribice%2Fglice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fribice%2Fglice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fribice%2Fglice/lists"}