1.0.3 • Published 4 years ago

file_pattern_count v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

this package counts the number of iterations of any given string in the file

Usage is as simple as:

Go to the cli and type

count "filename" "searchstring"

filename belongs to a file that can be readby fs module's readFileSync function

string is any string that is qualifiled by your operating system as a string in command line

Example:

count demo.txt "Hello World!"/n file read : Hello World!/n Hello World/n HEllo world/n Hello World!!!/n Hello/n file length : 61/n searchstring : Hello World!/n searchstring Length : 12/n 0/n 40/n count: 2/n

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago