记录你的应用使用时间, 支持 windows、Linux、MacOS
- npm 安装
npm install record-your-life -g
- 设置文件存储路径
运行命令:
record-your-life set STORAGE_PATH
如果不设置的话,默认会存储在
npm
全局包安装的路径
- windows 自启动
运行命令:
record-your-life init
运行后,重启即可
默认情况下,
record-your-life
5min 中会进行写入操作,可以在init
后面添加参数,例如record-your-life init 10000
10s 进行一次写入
Note
如果希望断电可以使用,请 右键此电脑 -> 管理 -> 任务计划程序 -> 任务计划程序库 -> 找到名称为 RecordYourLife 的任务 -> 在条件一栏中将 "只有在计算机使用交流电源..." 取消掉
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
打印 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
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
- [] 支持年度总结等