{"id":15568213,"url":"https://github.com/raed667/iconify-hashes-js","last_synced_at":"2025-03-29T05:45:03.590Z","repository":{"id":70853890,"uuid":"78293950","full_name":"raed667/iconify-hashes-js","owner":"raed667","description":"Turn hashes into icons","archived":false,"fork":false,"pushed_at":"2017-01-14T12:51:18.000Z","size":284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T17:05:59.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://raedslab.github.io/iconify-hashes-js/","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/raed667.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-01-07T17:45:03.000Z","updated_at":"2017-01-07T22:17:45.000Z","dependencies_parsed_at":"2023-05-19T22:15:51.582Z","dependency_job_id":null,"html_url":"https://github.com/raed667/iconify-hashes-js","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.125,"last_synced_commit":"819471563f9e31f242d7e0591201a1db0f7331b0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raed667%2Ficonify-hashes-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raed667%2Ficonify-hashes-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raed667%2Ficonify-hashes-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raed667%2Ficonify-hashes-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raed667","download_url":"https://codeload.github.com/raed667/iconify-hashes-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145022,"owners_count":20730493,"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":[],"created_at":"2024-10-02T17:14:44.776Z","updated_at":"2025-03-29T05:45:03.569Z","avatar_url":"https://github.com/raed667.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Iconify your hashes\n\nTurn ugly hashes into icons\n\n[![Build Status](https://travis-ci.org/RaedsLab/iconify-hashes-js.svg?branch=master)](https://travis-ci.org/RaedsLab/iconify-hashes-js)\n[![Dependency Status](https://david-dm.org/Raedslab/iconify-hashes-js.svg)](https://david-dm.org/Raedslab/iconify-hashes-js)\n[![devDependency Status](https://david-dm.org/Raedslab/iconify-hashes-js/dev-status.svg)](https://david-dm.org/Raedslab/iconify-hashes-js#info=devDependencies)\n[![Coverage Status](https://coveralls.io/repos/github/RaedsLab/iconify-hashes-js/badge.svg?branch=master)](https://coveralls.io/github/RaedsLab/iconify-hashes-js?branch=master)\n\n## Why ?\n\n+ 1 - It is much simpler to compare colorful icons than long hashes.\n\n+ 2- This is mainly used for \u003cem\u003eover the phone\u003c/em\u003e transmission of hashes.\n\n\n## Demo\n\nYou can test a working demo here: [https://raedslab.github.io/iconify-hashes-js/](https://raedslab.github.io/iconify-hashes-js/)\n\n![demo](https://raw.githubusercontent.com/RaedsLab/iconify-hashes-js/master/demo/sha_vs_iconify.png)\n\n\n## How it works ?\n\nYou can use 2 functions: \n```js\n// returns an array of the colors and icons\niconify.iconify()\n\n// returns the HTML of the icons\niconify.getIcons()\n```\n\n## V 1.0\n\nThe version 1.0 works like the following:\n\n+ MD5 the input\n+ If a number is found, it gets replaced by an icon from font-awesome.\n+ If it is followed by [a-f] it is colored.\n+ If an [a-f] is not preceded by an icon, it colors a square.\n\n\n### Proposed spec\n\nI have managed to extract 30 icons from [fontawesome.io](http://fontawesome.io/) using [fontello](http://fontello.com/).\n\nThese 30 icons should be simple enough so that they can be transmitted orally in different languages without confusion.\n\n![icons](https://raw.githubusercontent.com/RaedsLab/iconify-hashes-js/master/demo/icons.png)\n\nFrom these 30, 10 has been selected to represent numbers from 0 to 9, like the following. \n\n```\n0: 'star'\n1: 'cloud'\n2: 'eye'\n3: 'coffee'\n4: 'heart'\n5: 'home'\n6: 'leaf'\n7: 'lock'\n8: 'road'\n9: 'key'\n```\nThe absence of shape is represented by a square `stop`\n\n\nColors represent letters from A to F.\n\n```js\n      a: {\n        'name': 'pink',\n        'code': '#ff206d'\n      },\n      b: {\n        'name': 'blue',\n        'code': '#1a237e'\n      },\n      c: {\n        'name': 'green',\n        'code': '#4caf50'\n      },\n      d: {\n        'name': 'yellow',\n        'code': '#ffeb3b'\n      },\n      e: {\n        'name': 'orange',\n        'code': '#ff9800'\n      },\n      f: {\n        'name': 'red',\n        'code': '#f40a02'\n      }\n```\n\nThe absence of color is represented by `black #000000`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraed667%2Ficonify-hashes-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraed667%2Ficonify-hashes-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraed667%2Ficonify-hashes-js/lists"}