https://github.com/crissdev/is-keyword-js
A simple way to check if a string is a keyword or reserved keyword in JavaScript
https://github.com/crissdev/is-keyword-js
Last synced: 11 months ago
JSON representation
A simple way to check if a string is a keyword or reserved keyword in JavaScript
- Host: GitHub
- URL: https://github.com/crissdev/is-keyword-js
- Owner: crissdev
- License: mit
- Created: 2014-09-18T14:43:11.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-12-21T00:56:36.000Z (over 11 years ago)
- Last Synced: 2025-04-13T13:04:43.418Z (about 1 year ago)
- Language: JavaScript
- Size: 149 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-keyword-js
[](https://travis-ci.org/crissdev/is-keyword-js)
> Check if a given string is a Javascript keyword or reserved for future keywords.
## Install
```sh
$ npm install --save is-keyword-js
```
## Usage
```js
var isKeyword = require('is-keyword-js');
isKeyword('this'); // returns true
```
## LICENSE
MIT © [Cristian Trifan](http://crissdev.com)