@antipol/search-word

A simple program to search for any word in a specified file

Usage no npm install needed!

<script type="module">
  import antipolSearchWord from 'https://cdn.skypack.dev/@antipol/search-word';
</script>

README

Search for any word in a specified file

  • Returns number of times the word occurs in specified file.
  • First argument is the word to search for
  • Second argument is the relative path to the file

Run:

node index searchWord relativePathToFile

to search for the specified word in the specified file.