getAppMetadata

Last updated 3 months ago

Retrieve the contents of the package.json file.

Returns

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

Example

import lampix from '@lampix/core';
‚Äč
lampix.getAppMetadata()
.then((pkg) => {
console.log(pkg.name); // logs the name property from package.json
});