SPDX-related functionality. Note: this namespace is not part of the public API of lice-comb and may change without notice.
SPDX-related functionality. Note: this namespace is not part of the public API of lice-comb and may change without notice.
(init!)
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
Note: this method has a substantial performance cost.
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it. Note: this method has a substantial performance cost.
(name->unlisted name)
Constructs a valid SPDX id (a LicenseRef specific to lice-comb) for an unlisted license, with the given name appended as Base62 (since clj-spdx identifiers are basically constrained to [A-Z][a-z][0-9] ie. Base62).
Constructs a valid SPDX id (a LicenseRef specific to lice-comb) for an unlisted license, with the given name appended as Base62 (since clj-spdx identifiers are basically constrained to [A-Z][a-z][0-9] ie. Base62).
(proprietary-commercial)
Constructs a valid SPDX id (a LicenseRef specific to lice-comb) representing a proprietary / commercial license.
Constructs a valid SPDX id (a LicenseRef specific to lice-comb) representing a proprietary / commercial license.
(proprietary-commercial? id)
Is the given id lice-comb's custom 'proprietary / commercial' LicenseRef?
Is the given id lice-comb's custom 'proprietary / commercial' LicenseRef?
(public-domain)
Constructs a valid SPDX id (a LicenseRef specific to lice-comb) representing public domain.
Constructs a valid SPDX id (a LicenseRef specific to lice-comb) representing public domain.
(public-domain? id)
Is the given id lice-comb's custom 'public domain' LicenseRef?
Is the given id lice-comb's custom 'public domain' LicenseRef?
(unlisted->name id)
Get the original name of the given unlisted license. Returns nil if id is nil or is not a lice-comb's unlisted LicenseRef.
Get the original name of the given unlisted license. Returns nil if id is nil or is not a lice-comb's unlisted LicenseRef.
(unlisted? id)
Is the given id a lice-comb custom 'unlisted' LicenseRef?
Is the given id a lice-comb custom 'unlisted' LicenseRef?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close