Generic utility functions
API Overview #
- Deprecateds - API features which will be removed in an upcoming release
- Functions - API calls offered directly by the extension
API Documentation #
Deprecateds #
getApplicationIconDataUri #
Signature | GridCraft.Util.getApplicationIconDataUri(string, hs.application) -> string or nil |
Type | Deprecated |
Description | Get an application icon as a data: URI |
Parameters |
|
Returns |
|
Notes |
|
Functions #
fileContents #
Signature | GridCraft.Util.fileContents(string) -> string or nil |
Type | Function |
Description | Get the contents of a file at a given path |
Parameters |
|
base64 #
Signature | GridCraft.Util.base64(string) -> string |
Type | Function |
Description | Encode a string in base64 format |
Parameters |
|
findApplicationPath #
Signature | GridCraft.Util.findApplicationPath(string) -> string or nil |
Type | Function |
Description | Find an application path by its name |
Parameters |
|
getBasename #
Signature | GridCraft.Util.getBasename(string) -> string |
Type | Function |
Description | Get the last component of a file path, or “/” if the path is the root directory |
Parameters |
|