Licensable

main

Lightweight Swift API for exporting license information
inseven/licensable

Licensable

Lightweight Swift API for exporting license information

Usage

extension Licensable where Self == License {

  public static var interact: License {

    let licenseURL = Bundle.module.url(forResource: "LICENSE", withExtension: nil)!

    return License(id: "https://github.com/inseven/interact",
                   name: Package.name,
                   author: Package.author,
                   text: try! String(contentsOf: licenseURL),
                   attributes: [
                     .url(URL(string: "https://github.com/inseven/interact")!, 
                        title: "GitHub"),
                   ],
                   licenses: [
                     .licensable,
                   ])
  }

}

License

Licensable is licensed under the MIT License (see LICENSE).

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 03:15:34 GMT-0900 (Hawaii-Aleutian Daylight Time)