UNPKG

sourcewizard

Version:

SourceWizard - AI-powered setup wizard for dev tools and libraries with MCP integration

19 lines (18 loc) 392 B
export class JSONSafe { static parse(text, reviver) { try { return JSON.parse(text, reviver); } catch (error) { return error; } } static stringify(value, replacer, space) { try { return JSON.stringify(value, replacer, space); } catch (error) { return error; } } }