Skip to content
  • Android
  • iOS
  • Web

Package Metadata

Read the published engine manifest from a Bun script.

Examples

Quick start

version.ts
import metadata from 'nayan-ui/package.json';

console.log(metadata.name, metadata.version);

Read the manifest version and available entry points

nayan-ui/package.json
import metadata from 'nayan-ui/package.json';

export const version = metadata.version;
export const entryPoints = Object.keys(metadata.exports).filter((name) => name.startsWith('./'));

Tags