MCPcopy
hub / github.com/fastify/fastify / getFuncPreview

Function getFuncPreview

lib/plugin-utils.js:52–55  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

50}
51
52function getFuncPreview (func) {
53 // takes the first two lines of the function if nothing else works
54 return func.toString().split('\n', 2).map(s => s.trim()).join(' -- ')
55}
56
57function getDisplayName (fn) {
58 return fn[Symbol.for('fastify.display-name')]

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…