Skip to content

Instantly share code, notes, and snippets.

@tillsanders
Last active August 23, 2024 16:25
Show Gist options
  • Save tillsanders/9e67a9d859a4bd01c3d732229ad3f46b to your computer and use it in GitHub Desktop.
Save tillsanders/9e67a9d859a4bd01c3d732229ad3f46b to your computer and use it in GitHub Desktop.
Get all licenses from a group of repositories

Get all licenses from a group of repositories

  1. Install https://github.com/gabrie30/ghorg and configure for use with GitLab.
  2. Clone your GitLab group (~/ghorg/by default): ghorg clone --scm=gitlab --protocol=ssh --output-dir=Code --fetch-all --color --clone-type=org --token=ABC-XYZ finanzritter.
  3. Install npm-license-crawler and recursive-install globally.
  4. Move to directory of cloned repositories.
  5. Install all dependencies: npm-recursive-install.
  6. Make a list of all dependencies: npm-license-crawler --dependencies --csv licenses.csv --omitVersion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment