{"id":18024001,"url":"https://github.com/lete114/simple-image-preview","last_synced_at":"2025-07-21T09:33:51.438Z","repository":{"id":162541359,"uuid":"637056235","full_name":"Lete114/simple-image-preview","owner":"Lete114","description":"A lightweight image preview library","archived":false,"fork":false,"pushed_at":"2023-10-04T09:01:51.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T19:33:01.029Z","etag":null,"topics":["image","preview","preview-image","previewer","view-image"],"latest_commit_sha":null,"homepage":"https://lete114.github.io/simple-image-preview","language":"TypeScript","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/Lete114.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-06T11:21:04.000Z","updated_at":"2023-05-07T12:33:10.000Z","dependencies_parsed_at":"2024-10-30T07:35:13.066Z","dependency_job_id":null,"html_url":"https://github.com/Lete114/simple-image-preview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lete114/simple-image-preview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fsimple-image-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fsimple-image-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fsimple-image-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fsimple-image-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lete114","download_url":"https://codeload.github.com/Lete114/simple-image-preview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fsimple-image-preview/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266276180,"owners_count":23903983,"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","preview","preview-image","previewer","view-image"],"created_at":"2024-10-30T07:11:38.485Z","updated_at":"2025-07-21T09:33:51.421Z","avatar_url":"https://github.com/Lete114.png","language":"TypeScript","readme":"# Simple-Image-Preview\n\nA lightweight image preview library\n\n- preview site: [https://lete114.github.io/simple-image-preview](https://lete114.github.io/simple-image-preview)\n\n## Installation\n\n```bash\nnpm install simple-image-preview\n```\n\nOr\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/simple-image-preview/dist/simple-image-preview.umd.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```js\nimport simpleImagePreview from 'simple-image-preview'\n\n// Pass in a css selector (default: img)\nsimpleImagePreview('main img') // will select all `img` tags under the `main` tag\n\n// Pass in a NodeList data structure\nconst imgs = document.querySelectorAll('main img')\nsimpleImagePreview(imgs)\n\n// custom z-index (default: 1)\nsimpleImagePreview('main img', { zIndex: 100 })\n```\n\n## options\n\n### zIndex\n\nType: `Number`\n\nDefault: `1`\n\ncustom z-index\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flete114%2Fsimple-image-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flete114%2Fsimple-image-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flete114%2Fsimple-image-preview/lists"}