Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-keyword

hemanth850MIT1.2.2

Checks if the given token is an ES keyword.

type, detect, check, is, keyword, keywords, ES

readme

is-keyword Build Status

Checks if the given token is an ES keyword.

Install

$ npm install --save is-keyword
$ bower install --save is-keyword
$ component install hemanth/is-keyword

Usage

Node.js
var isKeyword = require('is-keyword');
isKeyword('let');
//=> true

License

MIT © Hemanth.HM