https://github.com/somewind/jsfinder
Search for the specified string outside the comment `//` or `/* */` in the js file
https://github.com/somewind/jsfinder
Last synced: 4 months ago
JSON representation
Search for the specified string outside the comment `//` or `/* */` in the js file
- Host: GitHub
- URL: https://github.com/somewind/jsfinder
- Owner: somewind
- License: mit
- Created: 2019-05-05T03:27:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-05T12:47:16.000Z (about 7 years ago)
- Last Synced: 2025-11-02T22:15:09.377Z (8 months ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Find JS Words
## Features
Search for the specified string outside the comment `//` or `/* */` in the js file
## Installation
```shell
npm i jsfinder -g
```
## Usage
```shell
Usage: jsfinder [options]
Options:
-V, --version output the version number
-s, --source [src] specify source dir relative path, defaults to ./src (default: "./src")
-r, --rule [rule] specify match rule, string or regex, defaults to [\u4e00-\u9fa5]+)
-m, --print-matches only print match words
-h, --help output usage information
```
```shell
$ jsfinder
测试字符串(/Users/maoshuchen/Documents/dev/data/test/src/app/index.js:4:4)
```
## License
[MIT](./LICENSE)