@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
13 lines • 360 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.jsonParseOrThrow = void 0;
const jsonParseOrThrow = (str) => {
try {
return JSON.parse(str);
}
catch (e) {
throw new Error(`could not parse json: ${str}`);
}
};
exports.jsonParseOrThrow = jsonParseOrThrow;
//# sourceMappingURL=jsonParse.js.map