{"id":15413460,"url":"https://github.com/wooorm/is-word-character","last_synced_at":"2025-04-19T11:40:04.274Z","repository":{"id":57277750,"uuid":"63144532","full_name":"wooorm/is-word-character","owner":"wooorm","description":"Check if a character is a word character","archived":false,"fork":false,"pushed_at":"2022-11-23T12:01:38.000Z","size":53,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T07:22:33.011Z","etag":null,"topics":["alphabetical","character","number","numerical","word"],"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-12T09:22:02.000Z","updated_at":"2024-02-09T08:37:13.000Z","dependencies_parsed_at":"2023-01-23T19:15:18.568Z","dependency_job_id":null,"html_url":"https://github.com/wooorm/is-word-character","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-word-character","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-word-character/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-word-character/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fis-word-character/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/is-word-character/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249089023,"owners_count":21210903,"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":["alphabetical","character","number","numerical","word"],"created_at":"2024-10-01T16:57:11.245Z","updated_at":"2025-04-19T11:40:04.112Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"readme":"# is-word-character\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 a word character.\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    *   [`isWordCharacter(value)`](#iswordcharactervalue)\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 word character:\nwhether it matches `\\w` (which is short for `[a-zA-Z0-9_]`).\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-word-character\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {isWordCharacter} from 'https://esm.sh/is-word-character@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {isWordCharacter} from 'https://esm.sh/is-word-character@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {isWordCharacter} from 'is-word-character'\n\nisWordCharacter('a') // =\u003e true\nisWordCharacter('Z') // =\u003e true\nisWordCharacter('0') // =\u003e true\nisWordCharacter('_') // =\u003e true\nisWordCharacter(' ') // =\u003e false\nisWordCharacter('💩') // =\u003e false\n```\n\n## API\n\nThis package exports the identifier `isWordCharacter`.\nThere is no default export.\n\n### `isWordCharacter(value)`\n\nCheck if the given code point (`number`), or the code point at the first index\n(`string`), is a word character.\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-alphanumerical)\n*   [`wooorm/is-decimal`](https://github.com/wooorm/is-decimal)\n*   [`wooorm/is-hexadecimal`](https://github.com/wooorm/is-hexadecimal)\n*   [`wooorm/is-whitespace-character`](https://github.com/wooorm/is-whitespace-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-word-character/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/is-word-character/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-word-character.svg\n\n[coverage]: https://codecov.io/github/wooorm/is-word-character\n\n[downloads-badge]: https://img.shields.io/npm/dm/is-word-character.svg\n\n[downloads]: https://www.npmjs.com/package/is-word-character\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/is-word-character.svg\n\n[size]: https://bundlephobia.com/result?p=is-word-character\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-word-character","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fis-word-character","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fis-word-character/lists"}