Badgen.net: Feature request: Support path query param for david-dm badges

Created on 27 Aug 2018  路  3Comments  路  Source: badgen/badgen.net

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

Most helpful comment

Wow! That was fast, you鈥檙e awesome @amio

All 3 comments

+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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amio picture amio  路  3Comments

dougwilson picture dougwilson  路  6Comments

tunnckoCore picture tunnckoCore  路  6Comments

tunnckoCore picture tunnckoCore  路  4Comments

GMartigny picture GMartigny  路  6Comments