is-keyword-js

A simple way to check if a string is a keyword or reserved keyword in JavaScript

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-keyword-js
601.0.39 years ago10 years agoMinified + gzip package size for is-keyword-js in KB

Readme

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