library.listTokenLibraries: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page library.listTokenLibraries to Library.listTokenLibraries without leaving a redirect: Converting page title to first-letter uppercase)
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=library.listTokenLibraries
|name=library.listTokenLibraries
|proposed=true
|proposed=false
|trusted=false
|trusted=false
|version=1.11.0
|version=1.11.0
Line 7: Line 7:
List available [[Library Token|Lib:Token]] add-on libraries. Information is returned as an array of JSON objects. Information returned comes from the following Token properties:
List available [[Library Token|Lib:Token]] add-on libraries. Information is returned as an array of JSON objects. Information returned comes from the following Token properties:


* libVersion
* {{code|libVersion}}
* libAuthors  (comma separated list if there is more than one)
* {{code|libAuthors}}   (value should be a comma separated list if there is more than one)
* libWebsite
* {{code|libWebsite}}
* libGitUrl
* {{code|libGitUrl}}
* libLicense
* {{code|libLicense}}
* libDescription
* {{code|libDescription}}
* libShortDescription
* {{code|libShortDescription}}
 
If the properties don't exist or aren't set then ''Not Specified'' is returned instead.


If the properties don't exist or aren't set, then ''Not Specified'' is returned instead.
|usage=
|usage=
<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
Line 56: Line 55:
}}
}}
[[Category:Library Function]]
[[Category:Library Function]]
[[Category:Add-on Library Functions]]

Latest revision as of 23:59, 17 April 2024

library.listTokenLibraries() Function

Introduced in version 1.11.0
List available Lib:Token add-on libraries. Information is returned as an array of JSON objects. Information returned comes from the following Token properties:
  • libVersion
  • libAuthors (value should be a comma separated list if there is more than one)
  • libWebsite
  • libGitUrl
  • libLicense
  • libDescription
  • libShortDescription
If the properties don't exist or aren't set, then Not Specified is returned instead.

Usage

library.listTokenLibraries()

Parameters

  • None -

Example

List loaded Add-Ons.
Token Libraries Loaded:<br>
<pre>[r: json.indent(library.listTokenLibraries(),2)]</pre>

Returns:

Token Libraries Loaded:
[
  {
    "name": "lib:mytoken",
    "namespace": "mytoken",
    "version": "0.1",
    "website": "www.google.com",
    "gitUrl": "none.github.com",
    "authors": ["Turing"],
    "license": "None",
    "description": "Long Description",
    "shortDescription": "Short Desc.",
    "allowsUrlAccess": true
  }
]

See Also

Version Changes

  • 1.11.0 - Function added