A CLI tool to calculate working hours logged in the Time@Web application
npm install timeweb-genie-neoA CLI tool to calculate working hours logged in the Time@Web application.
| :warning: WARNING |
| -------------------------------------------- |
| This is a beta release and errors may occur. |
1. Create a ~/.timeweb-genie.json file (in your home directory):
``json`
{
"timewebUrl": "https://.../TwNet.dll",
"username": "...",
"password": "..."
}
_Optional config options:_
- justificationTypesNotCountingAsWorkingTime: Overwrite the default types to subtract from the working times (array of strings)targetWorkingHours
- : Overwrite the default target working hours (number)targetBreakMinutes
- : Overwrite the default lunch break time (number)
2. Simply run it with
`sh`
npx timeweb-genie-neo
_or_ for specific date range
`sh`
npx timeweb-genie-neo 01/10/2022 31/10/2022
Feel free to send a pull request if you want to add any features or if you find a bug.
Check the issues tab for some potential things to do.
`sh`
# Install dependencies
yarn install
# Run typescript compiler in watch mode
# This generates js application in /dist folder
yarn dev
# Execute application
node dist/application.js
Make sure to run the typescript compiler on watch mode by executing `yarn dev``.
Add Jetbrains Run/Debug Configuration:
!Alt text
