0.1.10 • Published 10 years ago

pattern-detector v0.1.10

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

Scan files to find whether certain text pattern exists.

Installation

npm install -g pattern-detector

Usage

Options:

  -d, --directory [directory path]     root directory to search from, defaults to pwd
  -p, --pattern [text pattern]         text pattern to find
  -e, --exclusion [exclusion pattern]  exclusive file pattern
  -v, --verbose                        verbose output

Example

Find whether require() is called in the current working direcotry, ignoring certain files:

detect -p 'require(.+)' -e 'node_modules|.git|README'

The output will be:

./bin/detector.js line 3
./bin/detector.js line 4
./bin/detector.js line 5
0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago