{"id":16713622,"url":"https://github.com/astronomersiva/placeholder-img","last_synced_at":"2025-03-15T05:26:37.984Z","repository":{"id":57325451,"uuid":"144034911","full_name":"astronomersiva/placeholder-img","owner":"astronomersiva","description":"Generates low-res blurred version of images that can be used as placeholders while lazy-loading them","archived":false,"fork":false,"pushed_at":"2018-08-08T17:06:09.000Z","size":75,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T05:03:43.493Z","etag":null,"topics":["image-processing","lazy-loading"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/astronomersiva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-08T15:40:50.000Z","updated_at":"2022-02-02T18:15:52.000Z","dependencies_parsed_at":"2022-09-09T05:51:14.115Z","dependency_job_id":null,"html_url":"https://github.com/astronomersiva/placeholder-img","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/astronomersiva%2Fplaceholder-img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astronomersiva%2Fplaceholder-img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astronomersiva%2Fplaceholder-img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astronomersiva%2Fplaceholder-img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astronomersiva","download_url":"https://codeload.github.com/astronomersiva/placeholder-img/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243689633,"owners_count":20331721,"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":["image-processing","lazy-loading"],"created_at":"2024-10-12T20:47:30.869Z","updated_at":"2025-03-15T05:26:37.963Z","avatar_url":"https://github.com/astronomersiva.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# placeholder-img [![Build Status](https://travis-ci.org/astronomersiva/placeholder-img.svg?branch=master)](https://travis-ci.org/astronomersiva/placeholder-img)\n\nGenerates low-res blurred versions of images that can be used as placeholders while lazy-loading them.\n\n### Installation\n\n* `npm install --save placeholder-img`\n\n### Usage\n\n* To create a placeholder image file,\n```\n  const placeholderImg = require('placeholder-img');\n\n  const src = 'path/to/image';\n  await placeholderImg.toFile(src, /* optional destination */);\n```\nIf the destination is not provided, the image will be saved to `${SRC}-placeholder.${FORMAT}`.\n\n* To generate the placeholder image in base64 encoding,\n```\n  const placeholderImg = require('placeholder-img');\n\n  const src = 'path/to/image';\n  const base64Image = await placeholderImg.toBase64(src);\n```\n\n### License\n\nMIT © [Sivasubramanyam A](https://sivasubramanyam.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastronomersiva%2Fplaceholder-img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastronomersiva%2Fplaceholder-img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastronomersiva%2Fplaceholder-img/lists"}