@cloud-copilot/iam-collect
Version:
Collect IAM information from AWS Accounts
22 lines • 578 B
JavaScript
import { readPackageFile } from '../utils/readPackageFile.js';
let packageCache = undefined;
/**
* Get the package data version
*
* @returns the package data version
*/
async function getPackageData() {
if (!packageCache) {
const packageJson = await readPackageFile(['package.json']);
packageCache = JSON.parse(packageJson);
}
return packageCache;
}
/**
* Get the version of the package
*/
export async function iamCollectVersion() {
const data = await getPackageData();
return data.version;
}
//# sourceMappingURL=packageVersion.js.map