An open API service indexing awesome lists of open source software.

https://github.com/teobais/is-kotlin-keyword

Check if the provided string is a Kotlin keyword
https://github.com/teobais/is-kotlin-keyword

javascript keyword kotlin npm reserved

Last synced: 3 months ago
JSON representation

Check if the provided string is a Kotlin keyword

Awesome Lists containing this project

README

        

[![npm version](https://badge.fury.io/js/is-kotlin-keyword.svg)](https://badge.fury.io/js/is-kotlin-keyword.js) ![Dependencies](https://david-dm.org/thodorisbais/is-kotlin-keyword.svg)
# is-kotlin-keyword
> Determine whether a string is a Kotlin keyword.

## Install
[![https://nodei.co/npm/is-kotlin-keyword.png](https://nodei.co/npm/is-kotlin-keyword.png)](https://www.npmjs.com/package/is-kotlin-keyword)

## Use
```javascript
// load the module
var isKotlinKeyword = require('index.js');

// check a keyword
isKotlinKeyword("while"); // true
```

## Test
To execute tests, first install the project dependencies:

```
$ npm install | yarn install
```

Then, run the tests
```
$ npm test
```