{"id":18817860,"url":"https://github.com/vitorluizc/fetch-img","last_synced_at":"2025-04-13T23:24:41.815Z","repository":{"id":57234610,"uuid":"141783447","full_name":"VitorLuizC/fetch-img","owner":"VitorLuizC","description":"Fetch asynchronously an image using it's source and resolve as `HTMLImageElement`.","archived":false,"fork":false,"pushed_at":"2018-08-16T13:49:06.000Z","size":110,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T06:35:45.480Z","etag":null,"topics":["async","asynchronous","ava","bili","image","load-image","load-image-asynchronously","load-image-url","promise","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VitorLuizC.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":"2018-07-21T05:18:17.000Z","updated_at":"2019-02-20T01:03:19.000Z","dependencies_parsed_at":"2022-09-15T04:22:26.301Z","dependency_job_id":null,"html_url":"https://github.com/VitorLuizC/fetch-img","commit_stats":null,"previous_names":["vitorluizc/load-image-element"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitorLuizC%2Ffetch-img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitorLuizC%2Ffetch-img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitorLuizC%2Ffetch-img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitorLuizC%2Ffetch-img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VitorLuizC","download_url":"https://codeload.github.com/VitorLuizC/fetch-img/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248795282,"owners_count":21162741,"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":["async","asynchronous","ava","bili","image","load-image","load-image-asynchronously","load-image-url","promise","typescript"],"created_at":"2024-11-08T00:13:42.626Z","updated_at":"2025-04-13T23:24:41.778Z","avatar_url":"https://github.com/VitorLuizC.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fetch IMG\n\n[![Build Status](https://travis-ci.org/VitorLuizC/fetch-img.svg?branch=master)](https://travis-ci.org/VitorLuizC/fetch-img)\n\nFetch asynchronously an image using it's source and resolve as `HTMLImageElement`.\n\n## Install\n\nThis module is published under NPM registry, so you can install using any Node.js package manager.\n\n```sh\nnpm install fetch-img --save\n\n# Use the command below for Yarn.\nyarn add fetch-img\n```\n\n## Usage\n\n```js\nimport fetchIMG from 'fetch-img';\n\nfetchIMG('https://nodejs.org/static/images/logo.svg')\n  .then((img) =\u003e document.body.appendChild(img))\n  .catch((error) =\u003e console.error(error));\n```\n\n## License\n\nReleased under [MIT license](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitorluizc%2Ffetch-img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitorluizc%2Ffetch-img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitorluizc%2Ffetch-img/lists"}