{"id":13624473,"url":"https://github.com/Gustu/string-to-color","last_synced_at":"2025-04-16T00:32:24.354Z","repository":{"id":6086274,"uuid":"54720988","full_name":"Gustu/string-to-color","owner":"Gustu","description":"Time invariant color from any object.","archived":false,"fork":false,"pushed_at":"2023-01-23T17:00:52.000Z","size":308,"stargazers_count":186,"open_issues_count":9,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-10T19:54:09.252Z","etag":null,"topics":["color","javascript","npm"],"latest_commit_sha":null,"homepage":"","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/Gustu.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}},"created_at":"2016-03-25T13:40:53.000Z","updated_at":"2024-11-30T05:31:23.000Z","dependencies_parsed_at":"2023-02-13T08:55:10.962Z","dependency_job_id":null,"html_url":"https://github.com/Gustu/string-to-color","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/Gustu%2Fstring-to-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustu%2Fstring-to-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustu%2Fstring-to-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gustu%2Fstring-to-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gustu","download_url":"https://codeload.github.com/Gustu/string-to-color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016068,"owners_count":21198824,"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":["color","javascript","npm"],"created_at":"2024-08-01T21:01:42.963Z","updated_at":"2025-04-16T00:32:24.094Z","avatar_url":"https://github.com/Gustu.png","language":"JavaScript","readme":"# String to color\n\n![Alt text](/assets/img.png?raw=true \"Sample\")\n\n[![npm version](https://badge.fury.io/js/string-to-color.svg)](https://badge.fury.io/js/string-to-color) ![](https://img.shields.io/npm/dm/string-to-color.svg)\n\nGenerate time invariant color from any string or any object.\n\n## Install\n\n```bash\nnpm install string-to-color\n```\n```bash\nyarn add string-to-color\n```\n\n## Demo\n\nhttps://gustu.github.io/string-to-color/\n\n## Usage\n\n```js\nconst stc = require('string-to-color');\nconst color = stc('string'); // =\u003e \"#7f1de4\"\n```\n\n\nor just generate color from any object, even null!\n\n```js\nconst color = stc(null); // =\u003e \"#1ad64b\"\n```\n\nAnother feature is that when your string contains color name, output will more or less equal to that color\n\n```js\nconst color = stc(\"i am a red fox\"); // =\u003e \"#f03d22\"\n```\n\nWhen multiple colors are provided, they will be mixed with each other\n\n```js\nconst color = stc(\"red green blue\"); // =\u003e \"#7f5b78\"\n```\n\n## License\n\nMIT.\n","funding_links":[],"categories":["javascript","npm"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGustu%2Fstring-to-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGustu%2Fstring-to-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGustu%2Fstring-to-color/lists"}