1.0.9 • Published 7 years ago
todo-viewer v1.0.9
todo-viewer
An npm package that prints out todos to the console. When running the command, the glob must be in quotes.
Install
To install the package globally, run:
npm i -g todo-viewerOr to install the package locally, run:
npm i -D todo-viewerUsage
When writing todos in your project, write them in the form:
// TODO: Lorem ipsumIf the package has been installed globally, run:
todo-viewer <file>or add a script to your package.json like:
"scripts": {
"todo": "todo-viewer \"*.js\""
}The <file> argument is a glob. This will log the todos to the console from all the files that the glob matches. <file> must be in quotes otherwise bash will match the glob before the package.
