Liking cljdoc? Tell your friends :D

lice-comb.spdx

SPDX related functionality.

SPDX related functionality.
raw docstring

id->infoclj

(id->info spdx-id)

Returns the SPDX license information for the given SPDX license identifier, or nil if unable to do so.

Returns the SPDX license information for the given SPDX license identifier, or nil if unable to do so.
sourceraw docstring

id->nameclj

(id->name id)

Returns the license name of the given id; either the official SPDX name or (if the id is not an SPDX id) an unofficial name. Returns the id as-is if unable to determine its name.

Returns the license name of the given id; either the official SPDX name or (if the id is not an SPDX id) an unofficial name. Returns the id as-is if unable to determine its name.
sourceraw docstring

id->spdx-nameclj

(id->spdx-name spdx-id)

Returns the official license name for the given SPDX id, or nil if unable to do so.

Returns the official license name for the given SPDX id, or nil if unable to do so.
sourceraw docstring

idsclj

All SPDX license identifiers in the list.

All SPDX license identifiers in the list.
sourceraw docstring

license-listclj

The SPDX license list.

The SPDX license list.
sourceraw docstring

license-list-versionclj

The version of the license list in use.

The version of the license list in use.
sourceraw docstring

name->idsclj

(name->ids name)

Attempts to determine the SPDX license identifier(s) (a set) from the given license name (a string). Returns nil if unable to do so.

Attempts to determine the SPDX license identifier(s) (a set) from the given license name (a string). Returns nil if unable to do so.
sourceraw docstring

spdx-id?clj

(spdx-id? id)

Is the given identifier an SPDX identifier?

Is the given identifier an SPDX identifier?
sourceraw docstring

spdx-name->idclj

(spdx-name->id name)

Returns the SPDX license identifier equivalent of the given license name (matched case insensitively), or nil if unable to do so.

Returns the SPDX license identifier equivalent of the given license name (matched case insensitively), or nil if unable to do so.
sourceraw docstring

text->idscljmultimethod

(text->ids text)

Attempts to determine the SPDX license identifier(s) (a set) from the given license text (an InputStream, or something that can have an io/input-stream opened on it).

Attempts to determine the SPDX license identifier(s) (a set) from the given license text (an InputStream, or something that can have an io/input-stream opened on it).
sourceraw docstring

uri->idclj

(uri->id uri)

Returns the SPDX license identifier equivalent for the given uri, or nil if unable to do so.

Notes:

  1. this does not perform exact matching; rather it checks whether the given uri matches the start of any of the known license uris.
  2. uris in the SPDX license list are not unique to a license (approximately 70 out of 600 are duplicates)
Returns the SPDX license identifier equivalent for the given uri, or nil if unable to do so.

Notes:
1. this does not perform exact matching; rather it checks whether the given uri matches the start of any of the known license uris.
2. uris in the SPDX license list are not unique to a license (approximately 70 out of 600 are duplicates)
sourceraw docstring

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

× close