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

@ryancui-/hourglass

v1.2.3

Published

A cli tool to submit DataStory Platform hourglass working hour

Downloads

4

Readme

Hourglass

智慧沙漏⌛

# 首先你要先安装一下 Node.js 环境(直接装最新版就行,前端同学要确保至少 v13 版本,要支持 ESM)
# 我不会教你,不会装就别用

# 然后安装一下这个包
npm install -g @ryancui-/hourglass --registry=https://registry.npmmirror.com/

# 跑一下命令看看是不是安装成功了,如果成功会显示帮助提示
hourglass

# 不登录肯定是没法用的
hourglass login

# 可以每天跑一次,默认当天,8小时,研发岗,处理任务数 1,备注「编码开发」
hourglass add --project 资生堂datacube2023年升级需求2
hourglass add --project 资生堂 # 如果找不到 exact match 的 project 会提示你确认的,不一定需要全名了

# 指定 week/month 可以直接把当前周/当前月(周一至周日)的全部填完,周六日会默认填请假
hourglass add --project 资生堂datacube2023年升级需求2 --week

# 也可以指定 date 或者 date 范围,周六日会默认填请假
hourglass add --project 资生堂datacube2023年升级需求2 --date 2024/02/23
hourglass add --project 资生堂datacube2023年升级需求2 --date 2024/02/23:2024/03/03

# 想要认真仔细填写的小伙伴也可以详细指定各种参数
hourglass add --hour 8 --post 研发 --date 2024/02/21 --project "DAC HDY 实验室项目二期" --task-count 1 --detail 我超勤奋的

# project 名称是一定需要的,可以通过 projects 命令找到需要的,copy 下来,注意只关注项目一列就好了
hourglass projects ls
hourglass projects ls --name hdy

# 看一下你这个月的工时,也有不同的筛选条件
hourglass ls
hourglass ls --date 2024/02/20

# 看一下当前的默认配置,你也可以修改,新增不传参是会默认拿这里的
hourglass defaults ls
hourglass defaults set post 产品
hourglass defaults set project XDP平台优化 # 我很稳定的
hourglass defaults set hour 12 # 我超勤奋的

# 当然,也可以删掉错误的,你要传 ls 中的 record id
hourglass rm 685QGWVASPA13
hourglass rm 685QGWVASPA14,685QGWVASPA15

# 如果你比较会玩,可以这样快速地删掉某一日的所有 record
hourglass ls --date 2024/02/21 --id | xargs hourglass rm

# 检查一下自古以来工时填得合不合规
hourglass check
hourglass check --date d # 只看今天

# 参考一下别人呗
hourglass peep
hourglass peep --user xxx

# peep 默认是参考人,你可以参考一下项目的情况
hourglass peep --by-project
hourglass peep --by-project --project vf

# 所有命令的 date 参数支持一些有趣的别名
hourglass ls --date d # 今天
hourglass ls --date -1d # 昨天
hourglass ls --date -4d:d # 四天前到今天