Proxy badge lookup for shields.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
261 B

  1. module.exports = (library, brands, resolve) => {
  2. const { [library]: resolvedLibrary = library } = resolve
  3. const [b = null, ] = brands.filter(b => b.name.toLowerCase() === resolvedLibrary.toLowerCase())
  4. if (b !== null) {
  5. return b
  6. }
  7. return null
  8. }