UNPKG

@cloud-copilot/iam-collect

Version:

Collect IAM information from AWS Accounts

16 lines 486 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseIfPresent = parseIfPresent; /** * Parse a JSON string if it is present, otherwise return undefined. * * @param value the JSON string to parse, or undefined if not present * @returns the parsed JSON object, or undefined if value is undefined */ function parseIfPresent(value) { if (!value) { return undefined; } return JSON.parse(value); } //# sourceMappingURL=json.js.map