senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.96k stars 312 forks source link

maintain a mapping from plugin load path to plugin #748

Open rjrodger opened 5 years ago

rjrodger commented 5 years ago

thus:

seneca.use('./foo/bar.js') // plugin_name is 'bar'
seneca.find_plugin('bar') === seneca.find_plugin('./foo/bar.js')
rjrodger commented 5 years ago

then update seneca-doc to use this https://github.com/voxgig/seneca-doc/blob/master/lib/inspect.js#L34