New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

todo-counter

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

todo-counter

Count todo comments in given directory with filter ext

latest
Source
npmnpm
Version
1.2.6
Version published
Weekly downloads
298
15.06%
Maintainers
0
Weekly downloads
 
Created
Source

todo-counter

count todo comments in specified directory

Install

npm install -d todo-counter

Todo Count

The following will search for todo comments in foo/bar directory and a subdirectories in files matching the .js extension.

npx todo-counter 'foo/bar' '.js'

Examples of TODO's that will be counted:

// TODO: This thing needs fixing
//todo: this is be counted
// todo this will be counted

Skipped Test Count

The following will search for skipped tests in foo/bar directory and a subdirectories in files matching the .js extension.

npx skipped-tests-counter 'foo/bar' '.js'

Examples of Skipped Tests that will be counted:

// SKIP: This thing needs fixing
//skip: this is be counted
// skip this will be counted

Expects

The following table structures are expected in your README file with Date cells including a <date> tag and the Todo Count/Skipped Tests Count cells including a <todoCounter>/<skippedTestsCounter> tag. If one is not found, the counter will append one at the end of the README file.

DateTodo Count
02/02/022
03/03/033
04/04/044
05/05/055
06/06/066
07/07/077
08/08/088
09/09/099
10/10/1010
08/23/2311
DateSkipped Tests Count
01/01/011
02/02/022
03/03/033
04/04/044
05/05/055
06/06/066
07/07/077
08/08/088
09/09/099
10/10/1010

Debugging

Run this utility with the operating system variable DEBUG=todo-counter, for example

$ todo-counter npx count ...

Keywords

todo

FAQs

Package last updated on 07 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts