Coder Social home page Coder Social logo

plumbiu / record-your-life Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 1.0 1.59 MB

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

License: MIT License

TypeScript 32.34% HTML 0.90% Vue 41.56% CSS 6.87% Rust 18.33%

record-your-life's Introduction

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

  • [] 支持年度总结等

record-your-life's People

Contributors

plumbiu avatar

Stargazers

kiic avatar  avatar YhuoyuH avatar cloud-cb avatar chaoszhu avatar 沈鸿飞 avatar 刘金凯 avatar uezjk avatar Foolgry avatar Mike Erickson avatar  avatar

Watchers

 avatar

Forkers

nough1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.