Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/syarul/detect-reserved-keywords
- Owner: syarul
- License: mit
- Created: 2016-12-02T10:15:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-16T02:02:36.000Z (almost 8 years ago)
- Last Synced: 2024-04-26T08:41:53.599Z (7 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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```