Skip to content

Plumbiu/record-your-life

Repository files navigation

record-your-life

记录你的应用使用时间, 支持 windows、Linux、MacOS

安装

  1. npm 安装
npm install record-your-life -g
  1. 设置文件存储路径

运行命令:

record-your-life set STORAGE_PATH

如果不设置的话,默认会存储在 npm 全局包安装的路径

  1. windows 自启动

运行命令:

record-your-life init

运行后,重启即可

默认情况下,record-your-life 5min 中会进行写入操作,可以在 init 后面添加参数,例如 record-your-life init 10000 10s 进行一次写入

Note

如果希望断电可以使用,请 右键此电脑 -> 管理 -> 任务计划程序 -> 任务计划程序库 -> 找到名称为 RecordYourLife 的任务 -> 在条件一栏中将 "只有在计算机使用交流电源..." 取消掉

效果

terminal

使用

Note

时间日期应以 YYYY-MM-DD 格式,例如 2024-01-08,而不是 2024-1-8,如果未填入时间时期,则默认今天

终端打印

record-your-life 2024-01-08 --list
record-your-life 2024-01-08 --bar
record-your-life 2024-01-08 --table
record-your-life 2024-01-08 --board

--detail

打印 0ms 的程序

record-your-life 2024-01-08 --list --detail
record-your-life 2024-01-08 --bar --detail
record-your-life 2024-01-08 --table --detail
record-your-life 2024-01-08 --board --detail

--help

Usage:
  $ record-your-life [date]

Commands:
  set <storagePath>
  [date]             Should like 2024-01-01, or 1 mean yesterday and so on
  web                Start web server
  watch [timer]      init record your life
  init [timer]

For more info, run any command with the `--help` flag:
  $ record-your-life set --help
  $ record-your-life --help
  $ record-your-life web --help
  $ record-your-life watch --help
  $ record-your-life init --help

Options:
  --file-name  Indicate the file
  --table      Table format of usage
  --bar        Bar chat format of usage
  --board      Board chat format of usage
  --list       List of apps
  --detail     Show the unused apps
  -h, --help   Display this message

TODO

  • [] 支持年度总结等

About

Record your app usage, support windows, Linux and MacOS | 记录你的应用程序使用,支持 windows、Linux 和 MacOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published