{"id":43549771,"url":"https://github.com/syntax-tree/estree-util-is-identifier-name","last_synced_at":"2026-02-03T19:14:30.051Z","repository":{"id":43396605,"uuid":"323856421","full_name":"syntax-tree/estree-util-is-identifier-name","owner":"syntax-tree","description":"Check if something can be an ecmascript (javascript) identifier name","archived":false,"fork":false,"pushed_at":"2023-07-19T10:26:39.000Z","size":79,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-01-29T21:27:41.435Z","etag":null,"topics":["ast","ecmascript","estree","identifier","javascript"],"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/syntax-tree.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},"funding":{"github":"unifiedjs","open_collective":"unified"}},"created_at":"2020-12-23T09:16:32.000Z","updated_at":"2022-11-12T20:55:17.000Z","dependencies_parsed_at":"2024-06-18T17:09:46.196Z","dependency_job_id":"7c49f569-e186-4844-8db0-437dc83c6025","html_url":"https://github.com/syntax-tree/estree-util-is-identifier-name","commit_stats":{"total_commits":42,"total_committers":3,"mean_commits":14.0,"dds":0.04761904761904767,"last_synced_commit":"7f6f5cb118512cc846e3ea1c06455d37604a7964"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/syntax-tree/estree-util-is-identifier-name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Festree-util-is-identifier-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Festree-util-is-identifier-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Festree-util-is-identifier-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Festree-util-is-identifier-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syntax-tree","download_url":"https://codeload.github.com/syntax-tree/estree-util-is-identifier-name/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-tree%2Festree-util-is-identifier-name/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29054202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: 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":["ast","ecmascript","estree","identifier","javascript"],"created_at":"2026-02-03T19:12:31.421Z","updated_at":"2026-02-03T19:14:21.378Z","avatar_url":"https://github.com/syntax-tree.png","language":"JavaScript","funding_links":["https://github.com/sponsors/unifiedjs","https://opencollective.com/unified"],"categories":[],"sub_categories":[],"readme":"# estree-util-is-identifier-name\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n[estree][] utility to check if something can be an identifier.\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    *   [`cont(code[, options])`](#contcode-options)\n    *   [`name(name[, options])`](#namename-options)\n    *   [`start(code)`](#startcode)\n    *   [Options](#options)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a utility that can be used to check if something can be an\nidentifier name.\nFor example, `a`, `_`, and `a1` are fine, but `1` and `-` are not.\n\n## When should I use this?\n\nYou can use this utility when generating IDs from strings or parsing IDs.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install estree-util-is-identifier-name\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {cont, name, start} from 'https://esm.sh/estree-util-is-identifier-name@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {cont, name, start} from 'https://esm.sh/estree-util-is-identifier-name@3?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {cont, name, start} from 'estree-util-is-identifier-name'\n\nname('$something69') // =\u003e true\nname('69') // =\u003e false\nname('var') // =\u003e true (this does not handle keywords)\n\nstart(48) // =\u003e false (code point for `'0'`)\ncont(48) // =\u003e true (code point for `'0'`)\n```\n\n## API\n\nThis package exports the identifiers [`cont`][api-cont],\n[`name`][api-name], and\n[`start`][api-start].\nThere is no default export.\n\n### `cont(code[, options])`\n\nChecks if the given code point can continue an identifier.\n\n###### Parameters\n\n*   `code` (`number`)\n    — code point to check\n*   `options` ([`Options`][api-options], optional)\n    — configuration\n\n###### Returns\n\nWhether `code` can continue an identifier (`boolean`).\n\n### `name(name[, options])`\n\nChecks if the given value is a valid identifier name.\n\n###### Parameters\n\n*   `name` (`string`)\n    — identifier to check\n*   `options` ([`Options`][api-options], optional)\n    — configuration\n\n###### Returns\n\nWhether `name` can be an identifier (`boolean`).\n\n### `start(code)`\n\nChecks if the given code point can start an identifier.\n\n###### Parameters\n\n*   `code` (`number`)\n    — code point to check\n\n###### Returns\n\nWhether `code` can start an identifier (`boolean`).\n\n### Options\n\nConfiguration (TypeScript type).\n\n###### Fields\n\n*   `jsx` (`boolean`, default: `false`)\n    — support JSX identifiers.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional type [`Options`][api-options].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`estree-util-is-identifier-name@^3`, compatible with Node.js 16.\n\n## Related\n\n*   [`goto-bus-stop/estree-is-identifier`](https://github.com/goto-bus-stop/estree-is-identifier)\n    — check if an AST node is an identifier\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for\nways to get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definitions --\u003e\n\n[build-badge]: https://github.com/syntax-tree/estree-util-is-identifier-name/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/estree-util-is-identifier-name/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/estree-util-is-identifier-name.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/estree-util-is-identifier-name\n\n[downloads-badge]: https://img.shields.io/npm/dm/estree-util-is-identifier-name.svg\n\n[downloads]: https://www.npmjs.com/package/estree-util-is-identifier-name\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size\u0026query=$.size.compressedSize\u0026url=https://deno.bundlejs.com/?q=estree-util-is-identifier-name\n\n[size]: https://bundlejs.com/?q=estree-util-is-identifier-name\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/syntax-tree/unist/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[health]: https://github.com/syntax-tree/.github\n\n[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md\n\n[support]: https://github.com/syntax-tree/.github/blob/main/support.md\n\n[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md\n\n[estree]: https://github.com/estree/estree\n\n[api-cont]: #contcode-options\n\n[api-name]: #namename-options\n\n[api-start]: #startcode\n\n[api-options]: #options\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntax-tree%2Festree-util-is-identifier-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntax-tree%2Festree-util-is-identifier-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntax-tree%2Festree-util-is-identifier-name/lists"}