david-dm supports passing a path parameter to read package.json related to the github repo + path specified in the parameter.
This makes it possible for monorepos that include multiple packages (mulitple package.json files) to list dependency information via david-dm for the specific packages. Zendesk Garden is a monorepo using this feature of david-dm: https://github.com/zendeskgarden/react-components#installation
Note that zendesk garden is using shields.io for these badges.
This feature request is for adding path support for david-dm badges to badgen.
Here is a valid david-dm URL using path to get dependency info for package in a monorepo:
https://david-dm.org/cerner/terra-framework?path=packages/terra-hookshot
Here is what I'm thinking for the badgen API for this:
https://badgen.net/david/cerner/terra-framework?path=packages/terra-hookshot
+1 on this feature. While sending params from badgen url to service api might cause naming conflict in the future, I think we can do it this way:
# dependencies:
https://badgen.net/david/dep/cerner/terra-framework
# dependencies (with path):
https://badgen.net/david/dep/cerner/terra-framework/packages/terra-hookshot
Wow! That was fast, you鈥檙e awesome @amio
Most helpful comment
Wow! That was fast, you鈥檙e awesome @amio