+4
-0
@@ -0,1 +1,5 @@ | ||
| ## v1.0.7 - June 19, 2013 | ||
| * Update log format to show duration (eg, `6:55am - 7:25am`). | ||
| ## v1.0.6 - June 18, 2013 | ||
@@ -2,0 +6,0 @@ |
+1
-1
@@ -57,4 +57,4 @@ var strRepeat = require('./helpers').strRepeat; | ||
| // Clear it out and print | ||
| process.stdout.write("\r" + strRepeat(' ', 79) + "\r" + line + ' '); | ||
| process.stdout.write("\033[2K\r" + line + ' '); | ||
| if (percent === 1) process.stdout.write("\n"); | ||
| }; |
+9
-1
@@ -22,5 +22,13 @@ var fs = require('fs'); | ||
| // Infer the end date. | ||
| var end = moment(+pomodoro.date + (pomodoro['break']||0) + pomodoro.duration); | ||
| // Heading | ||
| var date = moment(pomodoro.date).format('YYYY-MM-DD ddd').toLowerCase(); | ||
| var time = moment(pomodoro.date).format('h:mma'); | ||
| // Key | ||
| var time = format("%s - %s", | ||
| moment(pomodoro.date).format('h:mma'), | ||
| moment(end).format('h:mma')); | ||
| var str = format("%s (%s%s%s)", | ||
@@ -27,0 +35,0 @@ pomodoro.reason, |
+1
-1
@@ -10,3 +10,3 @@ { | ||
| "author": "Rico Sta. Cruz <hi@ricostacruz.com>", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "repository": { | ||
@@ -13,0 +13,0 @@ "type": "git", |
+27
-11
@@ -10,7 +10,17 @@ # Pomo.js | ||
| [](https://travis-ci.org/rstacruz/pomo.js) | ||
| [](https://travis-ci.org/rstacruz/pomo.js) [](http://badge.fury.io/js/pomo) | ||
| ### Get started | ||
| ``` sh | ||
| $ pomojs # Start a timer | ||
| $ pomojs "Conquer the world" # Reason (great if you're logging) | ||
| $ pomojs -w 30 # --work for 30 minutes | ||
| $ pomojs -b 12 # --break for 12 minutes | ||
| $ pomojs --help | ||
| ``` | ||
| ### Features | ||
| * Command-line goodness (just type `pomojs`) | ||
| * Ridiculously simple (just type `pomojs`) | ||
| * Configurable work and break durations (`pomojs --work 10 --break 2`) | ||
@@ -28,4 +38,8 @@ * Announces via text-to-speech ("5 minutes to go!") | ||
| ### Tmux integration | ||
| ---- | ||
| ### Tips | ||
| #### Tmux integration | ||
| Just add this to `~.tmux.conf`: (works almost exactly like in [pomo.rb][pomo-tmux]) | ||
@@ -37,3 +51,3 @@ | ||
| ### Logging | ||
| #### Logging | ||
@@ -45,15 +59,15 @@ Invoke it with `pomojs -l ~/.pomo.log` to log any pomodoros. Log file looks like | ||
| [2013-06-17 mon] | ||
| 6:14am = work on things (25m + 5m) | ||
| 7:05am = do great stuff (25m + 2m, stopped) | ||
| 6:14am - 6:44am = work on things (25m + 5m) | ||
| 7:05am - 7:32am = do great stuff (25m + 2m, stopped) | ||
| [2013-06-18 tue] | ||
| 6:14am = eat pizza (25m + 5m) | ||
| 6:14am - 6:44am = eat pizza (25m + 5m) | ||
| ``` | ||
| ### Saving your settings | ||
| #### Saving your settings | ||
| Add this to your shell config, so that the next time you can invoke `pomo` with | ||
| preset settings: | ||
| Add this to your shell config, so that the next time you can invoke `pomojs` | ||
| with preset settings: | ||
| ``` | ||
| ``` sh | ||
| # ~/.bash_profile | ||
@@ -73,2 +87,4 @@ alias pomo="pomojs --log ~/.pomo.log --tmux" | ||
| ----- | ||
| ### Also see | ||
@@ -75,0 +91,0 @@ |
@@ -47,3 +47,3 @@ require('./setup'); | ||
| '2013-05-05 sun': { | ||
| '1:00pm': 'working (35m + 5m)' | ||
| '1:00pm - 1:40pm': 'working (35m + 5m)' | ||
| } | ||
@@ -63,3 +63,3 @@ }); | ||
| '2013-05-05 sun': { | ||
| '1:00pm': 'working (35m)' | ||
| '1:00pm - 1:35pm': 'working (35m)' | ||
| } | ||
@@ -91,7 +91,7 @@ }); | ||
| '2013-05-05 sun': { | ||
| '3:00pm': 'working (35m + 5m)', | ||
| '3:30pm': 'working again (30m + 5m, stopped)' | ||
| '3:00pm - 3:40pm': 'working (35m + 5m)', | ||
| '3:30pm - 4:05pm': 'working again (30m + 5m, stopped)' | ||
| }, | ||
| '2013-05-06 mon': { | ||
| '5:00am': 'also working (25m + 5m)' | ||
| '5:00am - 5:30am': 'also working (25m + 5m)' | ||
| } | ||
@@ -98,0 +98,0 @@ }); |
Sorry, the diff of this file is not supported yet
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
38958
2.08%632
0.96%99
19.28%