0.0.9 • Published 4 years ago

common-time v0.0.9

Weekly downloads
3
License
BSD-2-Clause
Repository
github
Last release
4 years ago

common-time

Find common time for group meeting

npm Package Version

Remark

  • Excel template can be downloaded: TimeList-2020-January.csv
  • Timeslot fragments shorter than 15 minutes are skipped by default.

Installation

npm i -g common-time

Cli Usage

  1. Share a sheet with participants, google sheet, USB file, or whatever medium
  2. Each participants input their available timeslot
  3. Save the file as csv under a folder
  4. cd to the above folder in a terminal
  5. Run common-time
  6. The common available and unavailable timeslot will be saved in the csv files

You can specific the path to folder as common-time path-to-folder. It will scan all the csv files (non-recursively) in the specific folder.

CSV File Format

MonthParticipant 1... Participant N
Daytimeslottimeslot
.........

Extra columns after the Participant N separated by a blank column will be ignored

Timeslot format

ExampleMeaning
0900-12009am to 12nn available
09:00-12:309am to 12.30 nn available
ALL DAYwhole day available
N/Awhole day not available
0900-1200, 1700-19009am to 12nn and 5pm to 7pm are available

Example CSV File

Sample Input

JanuaryAliceBobCherryDave
140900-12009:00-16:00N/A0900-1200, 1700-1800, 2100-2200
151300-170018:00-1:000900-1900
161700-220018:00-1:0016:00-22:001900-2200
171300-220017:00-1:00All day0900-2200
182000-2200N/AN/A0900-2200
191700-2200All dayN/A0900-2200
200900-22001700-2200All day0900-2200
210900-1500N/AAll day0900-2200
220900-2200N/AN/A0900-2200
231400-220018:00-1:00N/A1900-2200
240900-15001700-2200N/A0900-2200

Sample Output

Common NACommon A
ALL DAY
ALL DAY
00:00-18:59, 22:01-23:5919:00-22:00
00:00-16:59, 22:01-23:5917:00-22:00
ALL DAY
ALL DAY
00:00-16:59, 22:01-23:5917:00-22:00
ALL DAY
ALL DAY
ALL DAY
ALL DAY

API Usage

TODO write details

import { start } from 'common-time/src/main'

// inplace file update
start({
  dir: 'your-csv-folder',
  minimum_duration_in_minutes: 15,
})
0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago