https://github.com/prettier/is-es5-identifier-name
Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6.
https://github.com/prettier/is-es5-identifier-name
Last synced: 8 months ago
JSON representation
Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6.
- Host: GitHub
- URL: https://github.com/prettier/is-es5-identifier-name
- Owner: prettier
- License: mit
- Created: 2022-10-21T06:26:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-08T01:55:58.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T15:15:06.143Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 833 KB
- Stars: 2
- Watchers: 9
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# is-es5-identifier-name
> Check if provided string is an `IdentifierName` as specified in [ECMA262 edition 5.1 section 7.6](https://262.ecma-international.org/5.1/#sec-7.6).
## Installation
```bash
yarn add is-es5-identifier-name
```
## Usage
```js
import isEs5IdentifierName from "is-es5-identifier-name";
isEs5IdentifierName("es5");
// -> true
isEs5IdentifierName("16");
// -> false
```