Socket
Socket
Sign inDemoInstall

print-todo

Package Overview
Dependencies
12
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    print-todo

Print TODOS in your project from the command line


Version published
Maintainers
1
Install size
340 kB
Created

Readme

Source

Print TODO

Command line tool for formatting and outputting all TODO comments left in your code.

Currently the search string is TODO, taking the entire line after TODO

node_modules and .git folders are currently ignored!

console output example

Setup

In your code, leave TODO comments like this:

//TODO: Remove hardcoded api root before going into prod
var api_root = 'https://example.com'

function halfBaked() {} //TODO: flesh out halfBaked function

Install globally from NPM:

npm i -g print

Usage

Run in current working directory without a directory arguement, or specify a folder to search through. Searches through folders recursively under the starting point, ignoring node_modules and .git folders

$ cd project-folder
$ printTodo

$ printTodo ~/Projects/project-folder

Credit

This is based off of a gist by Julian Burr. Thank you Julian!

Keywords

FAQs

Last updated on 14 Nov 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc