is-keyword-js

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

Usage no npm install needed!

<script type="module">
  import isKeywordJs from 'https://cdn.skypack.dev/is-keyword-js';
</script>

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