MCPcopy Create free account
hub / github.com/fastify/fastify / registerPluginName

Function registerPluginName

lib/plugin-utils.js:131–139  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

129}
130
131function registerPluginName (fn) {
132 const meta = getMeta(fn)
133 if (!meta) return
134
135 const name = meta.name
136 if (!name) return
137 this[kRegisteredPlugins].push(name)
138 return name
139}
140
141function checkPluginHealthiness (fn, pluginName) {
142 if (fn.constructor.name === 'AsyncFunction' && fn.length === 3) {

Callers

nothing calls this directly

Calls 1

getMetaFunction · 0.85

Tested by

no test coverage detected