Skip to content

About

Lightweight Swift API for exporting license information

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Licensable

build

Lightweight Swift API for exporting license information

Documentation

https://inseven.github.io/licensable/documentation/licensable/

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).

About

Lightweight Swift API for exporting license information

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages