npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

todo-fixme-scanner

v1.0.3

Published

A CLI tool to scan for TODO and FIXME comments in your project files.

Downloads

296

Readme

todo-fixme-scanner

A command-line tool to scan your project for TODO and FIXME comments, helping you keep track of pending tasks and issues in your codebase.

Features

  • Recursively scans directories for TODO and FIXME comments
  • Supports multiple file types including JavaScript, TypeScript, Markdown, HTML, CSS, and more
  • Excludes common directories like node_modules, .git, and build folders
  • Flexible output formats: console, JSON, and CSV
  • Easy to use with customizable options

Installation

Install the package globally using npm:

npm install -g todo-fixme-scanner

Or use it directly with npx:

npx todo-fixme-scanner@latest

Usage

Basic Usage

To scan the current directory and display results in the console:

todo-fixme-scanner

Custom Directory

To scan a specific directory:

todo-fixme-scanner --dir /path/to/your/project

Output Formats

Choose between console (default), JSON, or CSV output:

todo-fixme-scanner --output console
todo-fixme-scanner --output json
todo-fixme-scanner --output csv

Command-line Options

  • --dir, -d: Specify the directory to scan (default: current working directory)
  • --output, -o: Specify the output format: 'console', 'json', or 'csv' (default: console)

Example Output

Console Output

🔍 Scanning project for TODO/FIXME comments...

TODO: Implement user authentication
File: /path/to/your/project/src/auth.js:15

FIXME: Optimize database query for better performance
File: /path/to/your/project/src/database.js:42

✅ Scan complete.

JSON Output

[
  {
    "type": "TODO",
    "text": "Implement user authentication",
    "file": "/path/to/your/project/src/auth.js",
    "line": 15
  },
  {
    "type": "FIXME",
    "text": "Optimize database query for better performance",
    "file": "/path/to/your/project/src/database.js",
    "line": 42
  }
]

CSV Output

Type,Text,File,Line
TODO,"Implement user authentication",/path/to/your/project/src/auth.js,15
FIXME,"Optimize database query for better performance",/path/to/your/project/src/database.js,42

Supported File Types

The scanner supports the following file extensions:

  • JavaScript: .js, .jsx
  • TypeScript: .ts, .tsx
  • Markdown: .md, .mdx
  • HTML: .html
  • CSS: .css
  • JSON: .json
  • YAML: .yml, .yaml
  • SCSS/SASS: .scss, .sass
  • LESS: .less

Excluded Directories

The following directories are automatically excluded from scanning:

  • node_modules
  • .next
  • .out
  • .dist
  • .git
  • build
  • .cache

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.