Questions tagged [shields.io]

Shields.io is a service for concise, consistent, and legible badges in SVG and raster format, which can easily be included in GitHub readmes or any other web page. Use this tag to ask questions about how to use the service or customise the badges in a specific way.

Shields.io is a service for concise, consistent, and legible badges in SVG and raster format, which can easily be included in GitHub readmes or any other web page. The service supports dozens of continuous integration services, package registries, distributions, app stores, social networks, code coverage services, and code analysis services. Every month it serves over 470 million images.

By default the provided badges look look similar to the following:

The project is open-source and is hosted on GitHub.

34 questions
0
votes
1 answer

Get package dependencies size/count/amount for shields.io badge

So far I got this: https://img.shields.io/badge/dynamic/json?url=https://raw.githubusercontent.com/axios/axios/master/package.json&query=$.dependencies[*]&label=dependecies Maybe there is a way to convert object to array and then use .length? Or…
henroper
  • 127
  • 3
  • 9
0
votes
1 answer

Return only php data without html tags

I am trying to create a custom shield from shields.io. I tried the route where I create an endpoint with json but that won't work for me because of accessibility issues. I came up with a workaround where I call the shields.io link from my php side…
Corné
  • 1,304
  • 3
  • 13
  • 32
0
votes
1 answer

shields.io appveyor badge not working

This is what I want but for my repo: https://img.shields.io/appveyor/ci/shelljs/shelljs/master.svg?style=flat-square&label=windows But my repo…
danday74
  • 52,471
  • 49
  • 232
  • 283
0
votes
2 answers

Find the size of expected svg text without a browser/svg renderer

I'm making a command line version of shields.io for fun, so no browser/v8 engine. I have most of the program nailed down but given a string I cannot determine how long, in pixels, it will end up on the screen, and thus adjust my background. My…
user2475269
1 2
3