GitXplorerGitXplorer
e

GitHubLicenseSearchKit

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
087a8c392a7a2c9edad1f4de90c24e087e200ee6

update Package.swift since URLSession async is backported in Xcode13.3

eelmetal committed 3 years ago
Unverified
76d720b04b3c672ebec926b1607225aa1276bdd2

add licenses api

eelmetal committed 3 years ago
Unverified
a39445f25ca42de2308f0d173e5114a440ed3f49

refactor to call licenses api

eelmetal committed 3 years ago
Verified
c19a0b514785ef965598acec6629a4f823640f8b

Update README.md

eelmetal committed 3 years ago
Unverified
355e68fa996cbdd6f3fe6e6d7a978f4e50f0f790

first version

eelmetal committed 3 years ago
Verified
67959fd0a49f4defa98f9da99f3bd6f642ddcf31

Initial commit

eelmetal committed 3 years ago

README

The README file for this repository.

GitHubLicenseSearchKit

Search the license for a given GitHub repository.

Usage

let repos = try await LicenseSearcher().search(repoName: "GitHubLicenseSearchKit")
print(repos.items.map { $0.license!.name }.first!) // MIT License

Requirement

Xcode 13.3+

Install

// swift-tools-version:5.5

import PackageDescription

let package = Package(
  name: "YourProject",
  dependencies: [
    .package(url: "https://github.com/elmetal/GitHubLicenseSearchKit.git", .from: "0.0.1")
  ],
  targets: [
    .target(name: "YourProject", dependencies: ["GitHubLicenseSearchKit"])
  ]
)

Note

GitHubLicenseSearchKit uses the API in this document.