1.0.3 • Published 5 years ago

find-todos v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

find-todos

Search for TODOs in a directory

Installation

find-todos is a node module available via npm. To install:

Run npm install find-todos

Usage

1. Add the following script to your package.json scripts

"find-todos": "find-todos <directoryPath> <searchKey>"

Parameters (optional):

directoryPath: Directory to search in. Default: Project root directory

searchKey: Key word to search for. Default: "TODO"

2. Run command

npm run find-todos

Example:

$ npm run find-todos
Searching for files with keyword TODO in ./sample
./sample/somedir/anotherdir/anotherfile.js - 1
   3: // TODO: ???

./sample/somefile.js - 3
   1: // TODO TODO TODO

Found 4 result(s) in 2 file(s)

npm package