{"id":20166082,"url":"https://github.com/robertjgabriel/valid-hex-color","last_synced_at":"2026-04-12T14:48:50.835Z","repository":{"id":83358017,"uuid":"157678848","full_name":"RobertJGabriel/valid-hex-color","owner":"RobertJGabriel","description":"Check if hex color is valid or not.","archived":false,"fork":false,"pushed_at":"2018-11-15T17:46:13.000Z","size":60,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T14:53:05.661Z","etag":null,"topics":["chrome","hex","javascript","nodejs","vue"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/valid-hex-color","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobertJGabriel.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":"2018-11-15T08:38:56.000Z","updated_at":"2020-01-13T19:25:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e0cc818-5425-4efc-8255-971b7fb66c60","html_url":"https://github.com/RobertJGabriel/valid-hex-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/RobertJGabriel%2Fvalid-hex-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertJGabriel%2Fvalid-hex-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertJGabriel%2Fvalid-hex-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertJGabriel%2Fvalid-hex-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobertJGabriel","download_url":"https://codeload.github.com/RobertJGabriel/valid-hex-color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241601977,"owners_count":19989033,"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":["chrome","hex","javascript","nodejs","vue"],"created_at":"2024-11-14T00:42:33.378Z","updated_at":"2025-12-31T01:05:04.348Z","avatar_url":"https://github.com/RobertJGabriel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# valid-hex-color [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]\n\u003e Check if hex color is in the valid range.\n\n## Installation\n\n```sh\n$ npm install --save valid-hex-color\n```\n\n## Usage\n\n```js\nconst validHexColor = require('valid-hex-color');\n\nvalidHexColor.check('#fff');\n// True\n\nvalidHexColor.check('#ffffff');\n// false\n\nvalidHexColor.check('#9999sj');\n// false\n\n```\n## License\n\nApache-2.0 © [Robert James Gabriel](https://www.robertgabriel.ninja)\n\n\n[npm-image]: https://badge.fury.io/js/valid-hex-color.svg\n[npm-url]: https://npmjs.org/package/valid-hex-color\n[travis-image]: https://travis-ci.org/RobertJGabriel/valid-hex-color.svg?branch=master\n[travis-url]: https://travis-ci.org/RobertJGabriel/valid-hex-color\n[daviddm-image]: https://david-dm.org/RobertJGabriel/valid-hex-color.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/RobertJGabriel/valid-hex-color\n[coveralls-image]: https://coveralls.io/repos/RobertJGabriel/valid-hex-color/badge.svg\n[coveralls-url]: https://coveralls.io/r/RobertJGabriel/valid-hex-color\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertjgabriel%2Fvalid-hex-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertjgabriel%2Fvalid-hex-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertjgabriel%2Fvalid-hex-color/lists"}