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

@shipleylabs/todos

v1.0.2

Published

a cli tool to collect all TODO-style comments within a given directory. All TODOs will be printed to your chosen output (STDOUT, log file, csv) and a github issue will be made for each TODO if possible.

Downloads

2

Readme

Todos

WARNING

This package has not been fully tested and should not be included in your work or personal projects. Testing is still ongoing. At this time I make no guarantee of quality.

Summary

This CLI collects all TODO statements inside a given project directory, and presents them as a list of outstanding issues to be completed. This tool can be used for reporting, documentation, and issue generation on github.

Usage

Todos will default to using environment variables instead of CLI arguments if they are present. If neither ENV variables nor cli arguments are present, the defaults assume you are searching the current directory (IE: the todos project directory) and using a STDOUT output. This is obviously not helpful for users, so the only TODO found will be an error stating that you should really be passing in a directory.

Here is an example of the command used to run the tool, with environment variables declared manually.

TODOS_GITHUB=<github_owner>/<repo_name> TODOS_TOKEN=<github_access_token> node main.js --dir=<directory> --output=<output>

Environment variables

  • TODOS_GITHUB

    This should be the github repo for the project you are using this tool on. For example, if you were attaching this to a repo with a url of https://www.github.com/johnsmith/test_repo, this variable should be set to johnsmith/test_repo.

  • TODOS_TOKEN

    This should be the github personal access token for your github user. Creating a special token specifically for this project with limited permissions is advised. See the documentation for creating github PATs for more information .

NPM Package

// Package.json
{
	// truncated...
	"dependencies": {
		// your dependencies here
		"todos": 1.0.0
	},
	"scripts": {
		"start": "react-scripts start",
		"build": "react-scripts build",
		"test": "react scripts test && npm run todos", // todos can be added onto your existing test scripts
		"todos": "todos --directory=<your src dir> --output=csv"
	}
	// truncated...
}