Liking cljdoc? Tell your friends :D

scarlet.license-finder.core


find-licensesclj

(find-licenses project-file & {:as opts})

Finds licenses for project-file.

Supported opts:

OptionDescription
:transitive?Whether to consider transitive dependencies
Finds licenses for `project-file`.

Supported `opts`:

| Option | Description |
|--------|-------------|
| `:transitive?` | Whether to consider transitive dependencies |
sourceraw docstring

resource-resolverclj

(resource-resolver resource-name)

Returns a resolver function from an EDN resource.

The EDN file must be a map dep-name => license-map, and every license-map should contain the following keys:

KeyDescription
:urlURL to the code repository or other source that names the license.
:versionsVector of version prefixes this license is valid for.
:licenseLicense ID (SPDX) or map with :id, :name, and :url.
Returns a resolver function from an EDN resource.

The EDN file must be a map `dep-name => license-map`, and every license-map
should contain the following keys:

| Key | Description |
|-----|-------------|
| `:url` | URL to the code repository or other source that names the license. |
| `:versions` | Vector of version _prefixes_ this license is valid for. |
| `:license` | License ID (SPDX) or map with `:id`, `:name`, and `:url`. |
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close