{"id":15413520,"url":"https://github.com/wooorm/is-hexadecimal","last_synced_at":"2026-03-01T00:31:17.954Z","repository":{"id":57277231,"uuid":"63099126","full_name":"wooorm/is-hexadecimal","owner":"wooorm","description":"Check if a character is hexadecimal","archived":false,"fork":false,"pushed_at":"2022-11-23T12:08:04.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-10T04:25:04.984Z","etag":null,"topics":["character","decimal","hexadecimal","number","numerical"],"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/wooorm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":"funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"wooorm"}},"created_at":"2016-07-11T20:18:10.000Z","updated_at":"2023-11-26T20:02:57.000Z","dependencies_parsed_at":"2023-01-22T06:19:36.408Z","dependency_job_id":null,"html_url":"https://github.com/wooorm/is-hexadecimal","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/wooorm/is-hexadecimal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hexadecimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hexadecimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hexadecimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hexadecimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/is-hexadecimal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-hexadecimal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29956187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"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":["character","decimal","hexadecimal","number","numerical"],"created_at":"2024-10-01T16:57:34.702Z","updated_at":"2026-03-01T00:31:17.914Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"readme":"# is-hexadecimal\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nCheck if a character is hexadecimal.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`isHexadecimal(value)`](#ishexadecimalvalue)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a function that checks if a given character is a white space character:\nwhether it matches `[a-f0-9]`, case insensitive.\n\n## When should I use this?\n\nNot often, as it’s relatively simple to do yourself.\nThis package exists because it’s needed in several related packages, at which\npoint it becomes useful to defer to one shared function.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install is-hexadecimal\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {isHexadecimal} from 'https://esm.sh/is-hexadecimal@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {isHexadecimal} from 'https://esm.sh/is-hexadecimal@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {isHexadecimal} from 'is-hexadecimal'\n\nisHexadecimal('a') // =\u003e true\nisHexadecimal('0') // =\u003e true\nisHexadecimal('G') // =\u003e false\nisHexadecimal('💩') // =\u003e false\n```\n\n## API\n\nThis package exports the identifier `isHexadecimal`.\nThere is no default export.\n\n### `isHexadecimal(value)`\n\nCheck if the given code point (`number`), or the code point at the first index\n(`string`), is hexadecimal.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/is-alphabetical`](https://github.com/wooorm/is-alphabetical)\n*   [`wooorm/is-alphanumerical`](https://github.com/wooorm/is-alphabetical)\n*   [`wooorm/is-decimal`](https://github.com/wooorm/is-decimal)\n*   [`wooorm/is-whitespace-character`](https://github.com/wooorm/is-whitespace-character)\n*   [`wooorm/is-word-character`](https://github.com/wooorm/is-word-character)\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definitions --\u003e\n\n[build-badge]: https://github.com/wooorm/is-hexadecimal/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/is-hexadecimal/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-hexadecimal.svg\n\n[coverage]: https://codecov.io/github/wooorm/is-hexadecimal\n\n[downloads-badge]: https://img.shields.io/npm/dm/is-hexadecimal.svg\n\n[downloads]: https://www.npmjs.com/package/is-hexadecimal\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/is-hexadecimal.svg\n\n[size]: https://bundlephobia.com/result?p=is-hexadecimal\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fis-hexadecimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fis-hexadecimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fis-hexadecimal/lists"}