{"id":16463318,"url":"https://github.com/dptole/fakeimg","last_synced_at":"2025-08-15T18:50:35.255Z","repository":{"id":16302387,"uuid":"77805357","full_name":"dptole/fakeimg","owner":"dptole","description":"Fake image URLs generator.","archived":false,"fork":false,"pushed_at":"2022-03-28T01:58:57.000Z","size":51,"stargazers_count":4,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T16:52:35.138Z","etag":null,"topics":["create","dummyimage","fakeimg","image","img"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/fakeimg","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/dptole.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":"2017-01-02T01:49:21.000Z","updated_at":"2025-04-10T10:12:12.000Z","dependencies_parsed_at":"2022-08-07T08:15:19.218Z","dependency_job_id":null,"html_url":"https://github.com/dptole/fakeimg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dptole/fakeimg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Ffakeimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Ffakeimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Ffakeimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Ffakeimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dptole","download_url":"https://codeload.github.com/dptole/fakeimg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Ffakeimg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270616251,"owners_count":24617108,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["create","dummyimage","fakeimg","image","img"],"created_at":"2024-10-11T11:14:06.084Z","updated_at":"2025-08-15T18:50:35.184Z","avatar_url":"https://github.com/dptole.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fake images generator\n=====================\n\n  [![Build status][circle-ci-badge]][circle-ci]\n  [![Issue status][gh-issues-badge]][gh-issues]\n  [![NPM Version][npm-module-version-badge]][npm-module]\n  [![Downloads][npm-downloads-total-badge]][npm-module]\n\nWhen the client waits for the last moment to send the image files, and the layout is broken, you need a fake image to fill the gap.\n\nImage providers\n===============\n\n- [DummyImage][dummyimage-url]\n- [Fakeimg.pl][fakeimg-pl-url]\n\nExample\n=======\n\n```javascript\n\nconst fakeimg = require('fakeimg')\n    , fakeimg_pl = fakeimg.use('fakeimg.pl')\n    , dummyimage = fakeimg.use('dummyimage')\n\nconst fakeimg_pl_object = fakeimg_pl({\n  size: '400x200',\n  background: '909090,255',\n  foreground: 'fba,127',\n  text: 'Fake image'\n})\n\n// https://fakeimg.pl/400x200/909090%2C255/fba%2C127/?text=Fake+image\u0026font_name=yanone\u0026font_size=50\nconsole.log(fakeimg_pl_object.toString())\n\nfakeimg_pl_object.download().then(http_response =\u003e\n  console.log('Fakeimg.pl download: Response status code ' + http_response.statusCode)\n)\n\nfakeimg_pl_object.downloadToFile('./fakeimg.pl.png').then(writestream =\u003e\n  console.log('Fakeimg.pl download: Writestream path', writestream.path)\n)\n\nconst dummyimage_object = dummyimage({\n  size: 300,\n  text: 'Dummy image'\n})\n\n// https://dummyimage.com/300x300/cccccc/000000/?text=Dummy+image\nconsole.log(dummyimage_object.toString())\n\ndummyimage_object.download().then(http_response =\u003e\n  console.log('Dummyimage download: Response status code ' + http_response.statusCode)\n)\n\ndummyimage_object.downloadToFile('./dummyimage.png').then(writestream =\u003e\n  console.log('Dummyimage download: Writestream path', writestream.path)\n)\n\n```\n\nLicense\n=======\n\n  [MIT][LICENSE]\n\n[dummyimage-url]: https://dummyimage.com/\n[fakeimg-pl-url]: https://fakeimg.pl/\n[circle-ci]: https://circleci.com/gh/dptole/fakeimg\n[circle-ci-badge]: https://img.shields.io/circleci/project/dptole/fakeimg.svg\n[gh-issues]: https://github.com/dptole/fakeimg/issues\n[gh-issues-badge]: https://img.shields.io/github/issues-raw/dptole/fakeimg.svg\n[npm-module]: https://www.npmjs.org/package/fakeimg\n[npm-module-version-badge]: https://img.shields.io/npm/v/fakeimg.svg\n[npm-downloads-total-badge]: https://img.shields.io/npm/dt/fakeimg.svg\n[LICENSE]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdptole%2Ffakeimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdptole%2Ffakeimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdptole%2Ffakeimg/lists"}