{"id":15413451,"url":"https://github.com/wooorm/is-badge","last_synced_at":"2026-03-04T09:02:22.699Z","repository":{"id":35097336,"uuid":"39265370","full_name":"wooorm/is-badge","owner":"wooorm","description":"Check if `url` is a badge","archived":false,"fork":false,"pushed_at":"2022-11-14T10:09:53.000Z","size":95,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-27T02:57:32.009Z","etag":null,"topics":["badge","codeclimate","codecov","coveralls","david","fury","gitter","inch","issuestats","nodei","saucelabs","shields","testling","travis"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wooorm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":"funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"wooorm"}},"created_at":"2015-07-17T17:01:42.000Z","updated_at":"2025-11-04T22:58:53.000Z","dependencies_parsed_at":"2022-08-04T00:00:13.823Z","dependency_job_id":null,"html_url":"https://github.com/wooorm/is-badge","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/wooorm/is-badge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/is-badge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-badge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29787302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["badge","codeclimate","codecov","coveralls","david","fury","gitter","inch","issuestats","nodei","saucelabs","shields","testling","travis"],"created_at":"2024-10-01T16:57:09.066Z","updated_at":"2026-03-04T09:02:22.683Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"readme":"# is-badge\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nCheck if `url` is a badge.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`isBadge(url)`](#isbadgeurl)\n*   [Data](#data)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Contribute](#contribute)\n*   [Security](#security)\n*   [License](#license)\n\n## What is this?\n\nThis is a tiny package that checks if a given url points to a badge.\n\n## When should I use this?\n\nYou can use this package for example to filter out badges.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install is-badge\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {isBadge} from 'https://esm.sh/is-badge@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {isBadge} from 'https://esm.sh/is-badge@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {isBadge} from 'is-badge'\n\nisBadge('https://img.shields.io/travis/joyent/node.svg') // =\u003e true\nisBadge('https://example.com') // =\u003e false\n```\n\n## API\n\nThis package exports the identifier `isBadge`.\nThere is no default export.\n\n### `isBadge(url)`\n\nCheck if `url` is a badge.\n\n## Data\n\nThis project supports:\n\n*   [x] [`codeclimate`][codeclimate]\n*   [x] [`codecov`][codecov-ci]\n*   [x] [`coveralls`][coveralls]\n*   [x] [`david-dm`][david]\n*   [x] [`fury.io`][fury]\n*   [x] [`github.com` workflows][github]\n*   [x] [`gitter`][gitter]\n*   [x] [`inch-ci`][inch]\n*   [x] [`issuestats`][issuestats]\n*   [x] [`nodei.co`][nodei]\n*   [x] [`saucelabs`][sauce]\n*   [x] [`shields.io`][shields]\n*   [x] [`testling`][testling]\n*   [x] [`travis-ci`][travis-ci]\n*   [x] `opencollective`\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## Security\n\nThis package is safe.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definitions --\u003e\n\n[build-badge]: https://github.com/wooorm/is-badge/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/is-badge/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-badge.svg\n\n[coverage]: https://codecov.io/github/wooorm/is-badge\n\n[downloads-badge]: https://img.shields.io/npm/dm/is-badge.svg\n\n[downloads]: https://www.npmjs.com/package/is-badge\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/is-badge.svg\n\n[size]: https://bundlephobia.com/result?p=is-badge\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[codeclimate]: https://codeclimate.com\n\n[codecov-ci]: https://codecov.io\n\n[coveralls]: https://coveralls.io\n\n[david]: https://david-dm.org\n\n[fury]: https://badge.fury.io\n\n[github]: https://github.com\n\n[gitter]: https://gitter.im\n\n[inch]: https://inch-ci.org/help/badge\n\n[issuestats]: http://issuestats.com\n\n[nodei]: https://nodei.co\n\n[sauce]: https://wiki.saucelabs.com/display/DOCS/Using+Status+Badges+and+the+Browser+Matrix+Widget+to+Monitor+Test+Results\n\n[shields]: https://shields.io\n\n[testling]: https://ci.testling.com/guide/quick_start#badge\n\n[travis-ci]: https://docs.travis-ci.com/user/status-images/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fis-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fis-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fis-badge/lists"}