MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / isFormattable

Function isFormattable

apps/web/ui/Message/BlockCode/utilities.ts:5–7  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

3}
4
5export function isFormattable(code: string): boolean {
6 return isJSON(code);
7}
8
9function isJSON(code: string): boolean {
10 const input = code.trim();

Callers 2

utilities.test.tsFile · 0.90
BlockCodeFunction · 0.90

Calls 1

isJSONFunction · 0.85

Tested by

no test coverage detected