Skip to content
A simple way to check if a string is a keyword or reserved keyword in JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
.jshintrc
.travis.yml
LICENSE
README.md
index.js
package.json
test.js

README.md

is-keyword-js

Build Status

Check if a given string is a Javascript keyword or reserved for future keywords.

Install

$ npm install --save is-keyword-js

Usage

var isKeyword = require('is-keyword-js');
isKeyword('this'); // returns true

LICENSE

MIT © Cristian Trifan

You can’t perform that action at this time.