getApps

Last updated 26 days ago

Retrieve the available apps to switch to. Currently only used by the app-switcher.

Returns

(Promise<AppInfo[]>): A promise that fulfills with a list of plain objects describing the available apps. AppInfo objects have the following properties:

  • name (string): App name.

  • package_data (Object): Information contained in package.json for each app.

Example

import lampix from '@lampix/core';
‚Äč
lampix.getApps()
.then((apps) => {
console.log(apps[0]) // { name: some-name, package_data: {} }
});