1.0.3 • Published 4 years ago
file_pattern_count v1.0.3
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