Lampix Apps API
Search…
Introduction
Application Development
Getting Started
Step by step app
LampixJS
API Reference
Watcher
RegisteredWatcher
.watchers.add
.watchers.remove
.watchers.pauseAll
.watchers.resumeAll
.presets.button
.helpers.rectangle
getLampixInfo
switchToApp
exit
getApps
getAppConfig
getAppMetadata
writeJsonToFile
readJsonFromFile
transformRectCoords
constants
Examples
Migrating from v0.x.x to v1.0.0-beta.x
Ecosystem
Deploying
Standard Watchers
Custom Watchers
Community
Lampix Simulator
Installation
Usage
Powered By
GitBook
getAppConfig
Retrieve the contents of the
config.json
file.
Returns
(
Promise<object>
): A promise that fulfills with a plain object.
Example
1
import
lampix
from
'@lampix/core'
;
2
​
3
const
initialize
=
(
config
)
=>
{
4
// do something with the data in config.json
5
};
6
​
7
lampix
.
getAppConfig
()
8
.
then
((
config
)
=>
{
9
initialize
(
config
);
10
});
Copied!
Notes
See
config.json
of the
production application structure
for details on what
config.json
is used for.
Previous
getApps
Next
getAppMetadata
Last modified
3yr ago
Copy link
Contents
Returns
Example
Notes