is-keyword-js
A simple way to check if a string is a keyword or reserved keyword in JavaScript
Last updated 6 years ago by crissdev .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-keyword-js 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.3                                ...           latest (6 years ago)

4 Versions

  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago

Copyright 2014 - 2016 © taobao.org |