MCPcopy
hub / github.com/typicode/json-server / ResourceItem

Function ResourceItem

public/script.js:1–8  ·  view source on GitHub ↗
({ name, length })

Source from the content-addressed store, hash-verified

1function ResourceItem({ name, length }) {
2 return `
3 <li>
4 <a href="${name}">/${name}</a>
5 <sup>${length ? `${length}x` : 'object'}</sup>
6 </li>
7 `
8}
9
10function ResourceList({ db }) {
11 return `

Callers 1

ResourceListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…