开发者社区> 镜像站> NPM> vampire
vampire
Count occurances of strings in files.
Last updated 5 years ago by bluejeansandrain .
MIT · Original npm · Tarball · package.json
$ cnpm install vampire 
SYNC missed versions from official npm registry.

node-vampire

Recursively find patterns in text files.

Usage:  vampire  [ -r | --regex ] [ -j | --json ] <path> ["<glob>"] <pattern>
        vampire  -h | --help

Count the number of occurances of <pattern> in files matching <glob>.

Options:
  -r,--regex  Treat <pattern> as a regular expression.
  -j,--json   Output JSON.
  -h,--help   Show this help text.

<path>
  The root directory in which to search for files. If this is a file and not a
  directory, then <glob> has no effect and the output will be a single number
  indicating then number of times <pattern> was matched.

<glob>
  Filenames relative to <path> must match this glob in order to be searched for
  <pattern>. Should be quoted so that it is passed literally, rather than
  expanded by the shell. Optional: If not given, then all files in <path> will
  be used.

<pattern>
  Literal string or regular expression that will be counted in each file.

Current Tags

  • 1.0.6                                ...           latest (5 years ago)

7 Versions

  • 1.0.6                                ...           5 years ago
  • 1.0.5                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (0)
None
Dependents (1)