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

itodo

v1.1.0

Published

Get the TODO/FIXME list

Downloads

12

Readme

itodo (爱土豆)

NPM version build status codecov David deps npm download

你也许喜欢随手写下TODO项:

// TODO: 不要忘记fix掉这个bug

但是你是否会完成您的承诺,在未来的某一天回头fix掉这个潜在的bug呢?没关系,itodo帮你记下您的TODO列表,并提醒你。

安装先

$ npm install itodo -g

如何用?

itodo --help // 一目了然所有相关命令

是的,最简单的用法就是itodo -i <某个项目>。生成结果如下:

my_datavjs jacksontian $itodo -i .
项目路径:/Users/jacksontian/git/itodo
您项目的TODO列表项还有:3项
类型 | 内容                                     | 行 | 文件名                                                                            
TODO | 还需要过滤node_modules目录下的文件       | 32 | /Users/jacksontian/git/itodo/lib/itodo.js                                         
hack | check for the v0.6.x "data" event        | 69 | /Users/jacksontian/git/itodo/node_modules/commander/node_modules/keypress/index.js
hack | check for the v0.6.x "newListener" event | 78 | /Users/jacksontian/git/itodo/node_modules/commander/node_modules/keypress/index.js

省略文件夹

itodo --filterDir "dir1,dir2" -i <某个项目>

默认等同 itodo --filterDir "node_modules,.git,build,dist" -i <某个项目>

手工调用

const itodo = require('itodo');

console.log('项目路径:' + input);
itodo.process(input).then((list) => {
  if (list.length) {
    console.log('您项目的TODO列表项还有:' + list.length + '项');
    var lines = [['类型', '内容', '文件名:行']];
    list.forEach(function (item) {
      lines.push([item.type, item.item, path.relative(input, item.filename) + ':' + item.lineno]);
    });
    console.log(pt.print(lines, ' | '));
  } else {
    console.log('恭喜您,项目的TODO列表为空');
  }
}, (err) => {
  if (err) {
    console.log('扫描项目出现错误:');
    console.log(err);
    return;
  }
});

爱土豆的贡献者们

$ git summary

 project  : itodo
 repo age : 9 years
 active   : 8 days
 commits  : 23
 files    : 10
 authors  : 
    22  Jackson Tian  95.7%
     1  dead-horse    4.3%

License

The MIT license