util::resources::cdnjs_version_API (public)

 util::resources::cdnjs_version_API -source source -library library \
    [ -count count ]

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Return a link to the version API of cdnjs. The "-library" is the name under which the package is available from cdnjs.

Switches:
-source (required)
-library (required)
-count (optional, integer, defaults to "1")

Partial Call Graph (max 5 caller/called nodes):
%3 util::resources::cdnjs_get_newest_version util::resources::cdnjs_get_newest_version (public) util::resources::cdnjs_version_API util::resources::cdnjs_version_API util::resources::cdnjs_get_newest_version->util::resources::cdnjs_version_API

Testcases:
No testcase defined.
Source code:
        switch $source {
            cdnjs {
                return https://api.cdnjs.com/libraries?search=$library&search_fields=name&fields=filename,description,version&limit=$count
            }
            jsdelivr {
                return https://data.jsdelivr.com/v1/packages/npm/$library
            }
        }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/utilities-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: