{"id":14971230,"url":"https://github.com/zzarcon/save-image","last_synced_at":"2026-02-06T16:06:53.783Z","repository":{"id":57356204,"uuid":"101839385","full_name":"zzarcon/save-image","owner":"zzarcon","description":"Save remote images locally with ease 🌈💾","archived":false,"fork":false,"pushed_at":"2017-09-15T08:19:05.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-16T15:41:06.674Z","etag":null,"topics":["image-processing","puppeteer","remote","save","scraping","utility"],"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/zzarcon.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-08-30T04:56:34.000Z","updated_at":"2025-02-11T15:49:38.000Z","dependencies_parsed_at":"2022-09-26T16:32:08.908Z","dependency_job_id":null,"html_url":"https://github.com/zzarcon/save-image","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zzarcon/save-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fsave-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fsave-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fsave-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fsave-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzarcon","download_url":"https://codeload.github.com/zzarcon/save-image/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzarcon%2Fsave-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29167870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T15:38:29.831Z","status":"ssl_error","status_checked_at":"2026-02-06T15:37:48.592Z","response_time":59,"last_error":"SSL_read: 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":["image-processing","puppeteer","remote","save","scraping","utility"],"created_at":"2024-09-24T13:44:53.793Z","updated_at":"2026-02-06T16:06:53.767Z","avatar_url":"https://github.com/zzarcon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# save-image [![Build Status](https://travis-ci.org/zzarcon/save-image.svg)](https://travis-ci.org/zzarcon/save-image) 🌈💾\n\u003e Save remote images locally with ease\n\n**Save image** is a dependency free + promise oriented + image saver utility that makes saving remote images locally trivial.\n\n# Default\n\nSaves an image in the current directory using the remote image name. In this case will output `./avatar.jpeg`\n\n```javascript\nimport saveImage from 'save-image';\n\nconst imageUrl = 'http://zzarcon.github.io/static/images/avatar.jpeg';\nconst image = await saveImage(imageUrl);\n\nconsole.log(image.path);\nconsole.log(image.content);\n```\n\n# Specify location\n\n```javascript\nimport saveImage from 'save-image';\n\nconst imageUrl = 'http://zzarcon.github.io/static/images/avatar.jpeg';\n\nsaveImage(imageUrl, './public/download.jpeg');\n```\n\n# Return type\n\n```typescript\ninterface Image {\n  path: string;\n  content: string;\n}\n```\n\n**path**: Absolute location where the image was saved\n\n**content**: Binary content of the image\n\n# Installation\n\n```\n$ yarn add save-image\n```\n\n# TODO\n\n- [ ] Allow to preserve image extension `saveImage(imageUrl, './public/download')` =\u003e `./public/download.jpeg`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzarcon%2Fsave-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzarcon%2Fsave-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzarcon%2Fsave-image/lists"}