UNPKG

click-parser

Version:

Extract data from Ubuntu's click packages

14 lines (12 loc) 172 B
module.exports = { isJson(string) { let value = true; try { JSON.parse(string); } catch (e) { value = false; } return value; }, };