Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/syarul/detect-reserved-keywords

Simple tool to detect reserved words/keywords used as object properties in a javascript file
https://github.com/syarul/detect-reserved-keywords

Last synced: 3 days ago
JSON representation

Simple tool to detect reserved words/keywords used as object properties in a javascript file

Awesome Lists containing this project

README

        

# detect-reserved-keywords
Simple tool to detect reserved words used as object properties in a javascript file

# To install

```npm install detect-reserved-keywords -g```

# Options

type ```dresv -h```

-h, --help output usage information
-V, --version output the version number
-e, --es Ecmascript dialects version either: 3, 5 or 6
-f, --file javascript file reference, ie: -f jsFileWithReserveWords.js
-d, --dir parse all *.js files in a directory recursively

# To use the cli
type in your console

```dresv -e 3 -f file.js```

to parse all files in current directory

```dresv -e 3 -d *```

to parse all files in a directory

```dresv -e 3 -d ./somedir/js```