{"id":20285784,"url":"https://github.com/tpkn/image-exists","last_synced_at":"2026-06-07T17:32:05.170Z","repository":{"id":57272539,"uuid":"169808626","full_name":"tpkn/image-exists","owner":"tpkn","description":"Check if remote image exists","archived":false,"fork":false,"pushed_at":"2019-08-28T20:57:00.000Z","size":2972,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T20:03:07.091Z","etag":null,"topics":[],"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/tpkn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-08T22:43:13.000Z","updated_at":"2019-08-28T20:57:01.000Z","dependencies_parsed_at":"2022-09-02T09:53:55.122Z","dependency_job_id":null,"html_url":"https://github.com/tpkn/image-exists","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fimage-exists","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fimage-exists/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fimage-exists/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpkn%2Fimage-exists/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpkn","download_url":"https://codeload.github.com/tpkn/image-exists/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780512,"owners_count":20019061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-14T14:28:54.655Z","updated_at":"2025-11-29T17:01:47.425Z","avatar_url":"https://github.com/tpkn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Exists [![npm Package](https://img.shields.io/npm/v/img-exists.svg)](https://www.npmjs.org/package/img-exists)\nCheck if remote image exists\n\n## Features\n - Ping single remote image or an array of images\n - **Does not consume time and traffic downloading the whole image**\n - Cross browser (after Babel), pure vanilla js\n\n\n## API\n\n```javascript\nImageExists(input[, options], complete)\n```\n\n### input   \n**Type**: _String_ | _Array_  \nSingle url, or an array of urls\n\n\n### options.timeout   \n**Type**: _Number_  \n**Default**: `1000` ms   \nWait for a server response\n\n\n### complete   \n**Type**: _Function_  \nCallback function   \n\n\n## Usage   \n```javascript\nlet images = [\n   'https://www.instagram.com/static/images/homepage/home-phones.png/43cc71bb1b43.png', \n   'https://assets.nationalgeographic.com/styleguide/stable/logos/ng-logo-2fl.svg', \n   'https://royalmail.com/sites/all/themes/royalmail2017/img/royalmail-logo.png',\n   'https://avatars3.githubusercontent.com/u/18248992?s=40\u0026v=4'\n];\n\nImageExists(images, { timeout: 1000 }, (err, result) =\u003e {\n   if(err){\n      // ...\n   }\n\n   // ...\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Fimage-exists","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpkn%2Fimage-exists","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpkn%2Fimage-exists/lists"}