UNPKG

@cloud-copilot/iam-lens

Version:

Visibility in IAM in and across AWS accounts

22 lines 589 B
import { getPackageFileReader } from './readPackageFile.js'; let packageCache = undefined; /** * Get the package data version * * @returns the package data version */ async function getPackageData() { if (!packageCache) { const packageJson = await getPackageFileReader().readFile(['package.json']); packageCache = JSON.parse(packageJson); } return packageCache; } /** * Get the version of the package */ export async function iamLensVersion() { const data = await getPackageData(); return data.version; } //# sourceMappingURL=packageVersion.js.map