/is-java-keyword

npm package to check whether a provided string is a Java keyword

Primary LanguageJavaScriptMIT LicenseMIT

npm version Dependencies

is-java-keyword

Determine whether a string is a Java keyword.

Install

https://nodei.co/npm/is-java-keyword.png

Use

// load the module
var isKeyword = require('index.js');

// check a keyword
isKeyword("while"); // true

Test

To execute tests, first install the project dependencies:

$ npm install

Then, run the tests

$ npm test