{"id":15602099,"url":"https://github.com/triniwiz/nativescript-image-cache-it","last_synced_at":"2026-02-16T21:33:30.790Z","repository":{"id":57308580,"uuid":"55823683","full_name":"triniwiz/nativescript-image-cache-it","owner":"triniwiz","description":"Image caching plugin for nativescript","archived":false,"fork":false,"pushed_at":"2021-03-15T08:36:05.000Z","size":17322,"stargazers_count":45,"open_issues_count":10,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-27T13:24:10.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/triniwiz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-09T03:17:43.000Z","updated_at":"2024-07-11T07:33:02.000Z","dependencies_parsed_at":"2022-08-29T02:51:42.826Z","dependency_job_id":null,"html_url":"https://github.com/triniwiz/nativescript-image-cache-it","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/triniwiz/nativescript-image-cache-it","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triniwiz%2Fnativescript-image-cache-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triniwiz%2Fnativescript-image-cache-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triniwiz%2Fnativescript-image-cache-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triniwiz%2Fnativescript-image-cache-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/triniwiz","download_url":"https://codeload.github.com/triniwiz/nativescript-image-cache-it/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triniwiz%2Fnativescript-image-cache-it/sbom","scorecard":{"id":898779,"data":{"date":"2025-08-11","repo":{"name":"github.com/triniwiz/nativescript-image-cache-it","commit":"3c915eb770f2faba0a60e97ca802a75534afb220"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: npmCommand not pinned by hash: publish/pack.sh:10","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T14:44:00.357Z","repository_id":57308580,"created_at":"2025-08-24T14:44:00.357Z","updated_at":"2025-08-24T14:44:00.357Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29519415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-10-03T02:37:13.571Z","updated_at":"2026-02-16T21:33:30.772Z","avatar_url":"https://github.com/triniwiz.png","language":"Java","readme":"[![npm](https://img.shields.io/npm/v/nativescript-image-cache-it.svg)](https://www.npmjs.com/package/nativescript-image-cache-it)\n[![npm](https://img.shields.io/npm/dt/nativescript-image-cache-it.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-image-cache-it)\n[![Build Status](https://travis-ci.org/triniwiz/nativescript-image-cache-it.svg?branch=master)](https://travis-ci.org/triniwiz/nativescript-image-cache-it)\n\n# Image-Cache-It\n\n[_Glide_](https://github.com/bumptech/glide/) - _Android_\n\n[_SDWebImage_](https://github.com/rs/SDWebImage/) - _IOS_\n\n## Install\n\n#### [NativeScript 7+](https://github.com/triniwiz/nativescript-plugins)\n\n* `tns plugin add @triniwiz/nativescript-image-cache-it`\n\n\n#### NativeScript 6.5x\n\n* `tns plugin add nativescript-image-cache-it`\n\n\n#### NativeScript 4x\n\n* `tns plugin add nativescript-image-cache-it@5.0.0-beta.20`\n\n#### NativeScript 3x\n\n* `tns plugin add nativescript-image-cache-it@3.0.7`\n\n#### NativeScript 2x\n\n* `tns plugin add nativescript-image-cache-it@1.6.0`\n\n## Usage\n\n```ts\nimport { ImageCacheIt } from 'nativescript-image-cache-it';\n// **new** call in your app.ts/ main.ts/ app.js to enable image-cache to hook into the device's lowmemory events\nImageCacheIt.enableAutoMM();\n```\n\nSet image url to load.\n\n```js\nload = image;\n```\n\nSet placeholder while images are downloading.\n\n```js\nplaceHolder = '~/assets/images/ph.png';\n```\n\nSet placeholder for images are that failed to download.\n\n```js\nerrorHolder = '~/assets/images/broken.png';\n```\n\nSet decoded image size.\n\n```js\ndecodedWidth = '300';\ndecodedHeight = '300';\n```\n\nStretch\n\n```js\nstretch = \"aspectFit\" // (optional) aspectFit || aspectFill || fill || none\n```\n\nPrefetch\n```typescript\nimport { ImageCacheIt } from 'nativescript-image-cache-it';\nImageCacheIt.fetchItem('https://source.unsplash.com/random').then(imageUrl =\u003e{}).catch();\n```\n\nDelete item from cache\n\n```typescript\nimport { ImageCacheIt } from 'nativescript-image-cache-it';\nImageCacheIt.deleteItem('https://source.unsplash.com/random').then().catch();\n```\n\nGet item from cache\n```typescript\nimport { ImageCacheIt } from 'nativescript-image-cache-it';\nImageCacheIt.getItem('https://source.unsplash.com/random').then(imageUrl =\u003e{}).catch();\n```\ne.g\n\n```ts\nimport { ImageCacheIt } from 'nativescript-image-cache-it';\nlet cache = new ImageCacheIt();\ncache.src = image;\ncache.placeHolder = '~/assets/images/broken.png';\ncache.errorHolder = '~/assets/images/ph.png';\ncache.decodedWidth = '300';\ncache.decodedHeight = '300';\ncache.filter = 'blur(10px);';\ncache.stretch = 'aspectFit';\nreturn cache;\n```\n\nXml markup settings\n\n```xml\ndecodedWidth=\"300\"; \u003c!-- (optional) --\u003e\ndecodedHeight=\"300\"; \u003c!-- (optional) --\u003e\nplaceHolder=\"~/assets/images/ph.png\" \u003c!-- (optional) --\u003e\nerrorHolder=\"~/assets/images/broken.png\"  \u003c!-- (optional) --\u003e\nstretch = \"aspectFit\" \u003c!-- (optional) --\u003e\nsrc= \"http://screenrant.com/wp-content/uploads/The-Flash-vs-the-Reverse-Flash.jpg\" \u003c!-- (required) --\u003e\n\n```\n\nIMPORTANT: Make sure you include xmlns:i=\"nativescript-image-cache-it\" on the Page element\n\ne.g\n\n```xml\n\u003ci:ImageCacheIt stretch=\"aspectFit\"  resize=\"300,300\" placeHolder=\"~/assets/images/ph.png\" errorHolder=\"~/assets/images/broken.png\" src=\"http://screenrant.com/wp-content/uploads/The-Flash-vs-the-Reverse-Flash.jpg\"/\u003e\n```\n\n### Angular\n\n```ts\nimport { TNSImageCacheItModule } from 'nativescript-image-cache-it/angular';\n\n@NgModule({\n    imports: [\n    TNSImageCacheItModule\n    ],\n    declarations: [\n        AppComponent\n    ],\n    bootstrap: [AppComponent]\n})\n```\n### Screenshots\n\n#### Repeater\n\n| Image                                                      | ImageCacheIt                                                         |\n| ---------------------------------------------------------- | -------------------------------------------------------------------- |\n| ![image_repeater](screenshots/image_repeater.gif?raw=true) | ![imagecacheit_repeater](screenshots/cache-it_repeater.gif?raw=true) |\n\n#### ListView\n\n| Image                                                       | ImageCacheIt                                                          |\n| ----------------------------------------------------------- | --------------------------------------------------------------------- |\n| ![image_listview](screenshots/image_list_view.gif?raw=true) | ![imagecacheit_listview](screenshots/cache-it_list_view.gif?raw=true) |\n","funding_links":[],"categories":["Awesome {N} [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Table of Contents"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriniwiz%2Fnativescript-image-cache-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftriniwiz%2Fnativescript-image-cache-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriniwiz%2Fnativescript-image-cache-it/lists"}