getAppMetadata
Retrieve the contents of the package.json file.

Returns

(Promise<object>): A promise that fulfills with a plain object.

Example

1
import lampix from '@lampix/core';
2
3
lampix.getAppMetadata()
4
.then((pkg) => {
5
console.log(pkg.name); // logs the name property from package.json
6
});
Copied!
Last modified 3yr ago
Copy link