UNPKG

@catladder/pipeline

Version:

Panter workflow for cloud CI/CD and DevOps

8 lines (7 loc) 168 B
export const jsonParseOrThrow = (str: string): any => { try { return JSON.parse(str); } catch (e) { throw new Error(`could not parse json: ${str}`); } };