0.1.0 • Published 4 years ago

calendar-deck v0.1.0

Weekly downloads
3
License
-
Repository
-
Last release
4 years ago

calendar-deck

A human editable (.txt) and machine readable (.ics) calendar-list.

Getting Started

npm i -D calendar-deck

Create text files with calendar entries.

21.3.2016, 10–11, Meeting
22.3.2016, Birthday

Add a run script to your package.json with the calendar-deck CLI pointing to the .txt file or to a folder with files in it:

"scripts": {
  "start": "calendar-deck build --outputFormat=ics --outputPath=./build calendar.txt"
}

calendar parser

You can create a text with dates:

21.3.2016, 10–11, Meeting
22.3.2016, Birthday

This will result in two calendar entries. The first is titled "Meeting" and has a time-range, the second is a whole day event with a title of "Birthday".

If you have many repeating events you can also have a template-like header:

---
title:
  prefix: "Meetup"
  join: " – "
date: 18:00–22:00
notes: bring beer.
---
22.2.2016, HTML
29.2.2016, JS

This will produce two events, one with the Title Meetup – HTML and one with Meetup – JS. Both have a note and a time-range.

License

MIT