All Projects → adrianlee44 → ical2json

adrianlee44 / ical2json

Licence: MIT license
A simple node package to convert ical data to json

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ical2json

ics-to-json
📅 Convert ICS calendars (eg. Google Calendar) to an opinionated JSON format.
Stars: ✭ 36 (-21.74%)
Mutual labels:  converter, ics
python-jicson
python ics to json lib
Stars: ✭ 11 (-76.09%)
Mutual labels:  ics
xsampa
X-SAMPA to IPA converter
Stars: ✭ 20 (-56.52%)
Mutual labels:  converter
romans
A Simple PHP Roman Numerals Library
Stars: ✭ 40 (-13.04%)
Mutual labels:  converter
godmt
Tool that can parse Go files into an abstract syntax tree and translate it to several programming languages.
Stars: ✭ 42 (-8.7%)
Mutual labels:  converter
gluon2pytorch
Gluon to PyTorch deep neural network model converter
Stars: ✭ 72 (+56.52%)
Mutual labels:  converter
dressup
Dress up your unicode!
Stars: ✭ 22 (-52.17%)
Mutual labels:  converter
mdtable2csv
convert tables in .md to .csv
Stars: ✭ 91 (+97.83%)
Mutual labels:  converter
bot-whatsapp
Unmaintained - Multipurpose WhatsApp Bot 🤖 using open-wa/wa-automate-nodejs library! ✨
Stars: ✭ 78 (+69.57%)
Mutual labels:  converter
CodeProject
Common code for unity project develop.
Stars: ✭ 28 (-39.13%)
Mutual labels:  converter
CTR-tools
Crash Team Racing (PS1) tools - a C# framework by DCxDemo and a set of tools to parse files found in the original kart racing game by Naughty Dog.
Stars: ✭ 93 (+102.17%)
Mutual labels:  converter
mcp3008.js
A node.js module for querying an mcp3008 analog/digital converter.
Stars: ✭ 24 (-47.83%)
Mutual labels:  converter
medium-to-markdown
Converts Medium posts to markdown.
Stars: ✭ 68 (+47.83%)
Mutual labels:  converter
bafi
Universal JSON, BSON, YAML, CSV, XML converter with templates
Stars: ✭ 65 (+41.3%)
Mutual labels:  converter
cyan
Cyan Color Converter
Stars: ✭ 68 (+47.83%)
Mutual labels:  converter
symreader-converter
Converts between Windows PDB and Portable PDB formats.
Stars: ✭ 50 (+8.7%)
Mutual labels:  converter
Excel2LaTeX
The Excel add-in for creating LaTeX tables
Stars: ✭ 914 (+1886.96%)
Mutual labels:  converter
Rates
A currency rate converter App.
Stars: ✭ 13 (-71.74%)
Mutual labels:  converter
Tracker
Even the best of apps have their issues
Stars: ✭ 113 (+145.65%)
Mutual labels:  converter
ical
📅 Golang iCalendar lexer/parser implementing RFC 5545
Stars: ✭ 28 (-39.13%)
Mutual labels:  ics

ical2json

A simple node package to convert iCal data (.ics file) to JSON format

Tests Coveralls branch

Getting started

Download and install from npm

npm install -g ical2json

To convert ics file to json

ical2json ./US-Holiday.ics

The json output will be written to a .json file in the same directory

./US-Holiday.json

File output:

{
  "VCALENDAR": [
    {
      "PRODID": "-//Calendar Labs//Calendar 1.0//EN",
      "VERSION": "2.0",
      "CALSCALE": "GREGORIAN",
      "METHOD": "PUBLISH",
      "X-WR-CALNAME": "Usa Holidays",
      "X-WR-TIMEZONE": "America/New_York",
      "VEVENT": [
        {
          "DTSTART;VALUE=DATE": "20130101",
          "DTEND;VALUE=DATE": "20130102",
          "DTSTAMP": "20111213T124028Z",
          "UID": "[email protected]",
          "CREATED": "20111213T123901Z",
          "DESCRIPTION": "Visit http",
          "LAST-MODIFIED": "20111213T123901Z",
          "LOCATION": "",
          "SEQUENCE": "0",
          "STATUS": "CONFIRMED",
          "SUMMARY": "New Year's Day",
          "TRANSP": "TRANSPARENT"
        },
        {
          "DTSTART;VALUE=DATE": "20130121",
          "DTEND;VALUE=DATE": "20130122",
          "DTSTAMP": "20111213T124028Z",
          "UID": "[email protected]",
          "CREATED": "20111213T123901Z",
          "DESCRIPTION": "Visit http",
          "LAST-MODIFIED": "20111213T123901Z",
          "LOCATION": "",
          "SEQUENCE": "0",
          "STATUS": "CONFIRMED",
          "SUMMARY": "M L King Day",
          "TRANSP": "TRANSPARENT"
        },
        {
          "DTSTART;VALUE=DATE": "20130214",
          "DTEND;VALUE=DATE": "20130215",
          "DTSTAMP": "20111213T124028Z",
          "UID": "[email protected]",
          "CREATED": "20111213T123901Z",
          "DESCRIPTION": "Visit http",
          "LAST-MODIFIED": "20111213T123901Z",
          "LOCATION": "",
          "SEQUENCE": "0",
          "STATUS": "CONFIRMED",
          "SUMMARY": "Valentine's Day",
          "TRANSP": "TRANSPARENT"
        }
      ]
    }
  ]
}

API

  Usage: ical2json [options] [FILES...]

  Options:

    -h, --help     output usage information
    -r, --revert   Revert JSON to ical
    -V, --version  output the version number

Programmatic API

var ical2json = require("ical2json");

// From ical to JSON
var output = ical2json.convert(icalData);

// From JSON to ical
var icalOutput = ical2json.revert(icalJson);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].