{"id":32232251,"url":"https://github.com/egy186/icojs","last_synced_at":"2026-04-21T13:05:22.779Z","repository":{"id":15077667,"uuid":"17804075","full_name":"egy186/icojs","owner":"egy186","description":"A JavaScript library to parse ICO.","archived":false,"fork":false,"pushed_at":"2025-10-19T01:43:25.000Z","size":4363,"stargazers_count":54,"open_issues_count":6,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-22T11:54:48.232Z","etag":null,"topics":["favicon","ico","icon"],"latest_commit_sha":null,"homepage":"http://egy186.github.io/icojs","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"transcode-open/apt-cyg","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egy186.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-03-16T17:00:06.000Z","updated_at":"2025-10-19T01:42:07.000Z","dependencies_parsed_at":"2023-07-14T03:22:28.350Z","dependency_job_id":"5271eab3-281b-45e4-872b-3d951a155b67","html_url":"https://github.com/egy186/icojs","commit_stats":{"total_commits":415,"total_committers":8,"mean_commits":51.875,"dds":0.5204819277108435,"last_synced_commit":"f6cd13b8c3d8e522874adb7fa242068cacab3361"},"previous_names":["egy186/ico.js"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/egy186/icojs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egy186%2Ficojs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egy186%2Ficojs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egy186%2Ficojs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egy186%2Ficojs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egy186","download_url":"https://codeload.github.com/egy186/icojs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egy186%2Ficojs/sbom","scorecard":{"id":369505,"data":{"date":"2025-08-11","repo":{"name":"github.com/egy186/icojs","commit":"9ceb9ca962942f1045c4daf5b7f21af06b6349f0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.1,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Maintained","score":10,"reason":"15 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/egy186/icojs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/egy186/icojs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/egy186/icojs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/egy186/icojs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/egy186/icojs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/egy186/icojs/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/egy186/icojs/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/egy186/icojs/ci.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   3 out of   3 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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 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"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T12:39:08.484Z","repository_id":15077667,"created_at":"2025-08-18T12:39:08.484Z","updated_at":"2025-08-18T12:39:08.484Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280431500,"owners_count":26329786,"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-10-22T02:00:06.515Z","response_time":63,"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":["favicon","ico","icon"],"created_at":"2025-10-22T11:54:57.799Z","updated_at":"2026-04-21T13:05:22.764Z","avatar_url":"https://github.com/egy186.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# icojs\n\n[![npm](https://img.shields.io/npm/v/icojs.svg)](https://www.npmjs.com/package/icojs)\n[![CI](https://github.com/egy186/icojs/actions/workflows/ci.yml/badge.svg)](https://github.com/egy186/icojs/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/egy186/icojs/badge.svg?branch=main)](https://coveralls.io/github/egy186/icojs?branch=main)\n\nA JavaScript library to use ICO.\nWorks on both Node.js and the browser.\n\n## Install\n\n```sh\nnpm install icojs\n```\n\n```js\nimport { decodeIco, isIco } from 'icojs';\n```\n\nA UMD bundle is also available for browsers.\n\n```html\n\u003cscript src=\"node_modules/icojs/dist/ico.js\"\u003e\u003c/script\u003e\n```\n\n## Example\n\n### Node.js:\n\n```js\nimport { readFile, writeFile } from 'node:fs/promises';\nimport { decodeIco } from 'icojs';\n\nconst buffer = await readFile('favicon.ico');\nconst images = await decodeIco(buffer, 'image/png');\n// save as png files\nimages.forEach(image =\u003e {\n  const file = `${image.width}x${image.height}-${image.bpp}bit.png`;\n  const data = Buffer.from(image.buffer);\n  writeFile(file, data);\n});\n```\n\n### Browser:\n\n```html\n\u003cinput type=\"file\" id=\"input-file\" /\u003e\n\u003cscript\u003e\n  document.querySelector('#input-file').addEventListener('change', async evt =\u003e {\n    const file = evt.target.files[0];\n    const buffer = await file.arrayBuffer();\n    const images = await ICO.decodeIco(buffer);\n    // logs images\n    console.dir(images);\n  });\n\u003c/script\u003e\n```\n\n## Demo\n\n[https://egy186.github.io/icojs/demo.html](https://egy186.github.io/icojs/demo.html)\n\n## API Documentation\n\n[https://egy186.github.io/icojs/](https://egy186.github.io/icojs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegy186%2Ficojs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegy186%2Ficojs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegy186%2Ficojs/lists"}