Socket
Socket
Sign inDemoInstall

icalendarts

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    icalendarts

This package helps you create calendars following the iCal spec.


Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

CalendarJS


Table of Contents

  • Installation
  • Usage
  • Purpose
  • Mini Documentation
  • License

Installation

This package was built using node v10.24.0. To install with node

npm install cal-js
yarn add cal-js
bower install cal-js

Usage

CalendarJS is written in Typescipt and takes full advantage of the typing it brings. The best experience would be in TypeScript but Javascript still works fine.

Javascript

const { Calendar } = require("icalendarts");

const events = [
  {
    start: new Date(1640304000),
    end: new Date(1641081599),
    summary: "Holidays!",
    description: "Christmas to the end of New Years",
  },
  {
    start: new Date(1641120300),
    end: new Date(1641153600),
    summary: "First Meeting",
    description: "Talk to them about boring work stuff"
  },
];

const calendar = new Calendar(events);
// Get output with calendar.build()

Typescript

import { Calendar, types } from "icalendarts";

const events: types.CalArgs[] = [
  {
    start: new Date(1640304000),
    end: new Date(1641081599),
    summary: "Holidays!",
    description: "Christmas to the end of New Years",
  },
  {
    start: new Date(1641120300),
    end: new Date(1641153600),
    summary: "First Meeting",
    description: "Talk to them about boring work stuff"
  },
];

const calendar = new Calendar(events);
// Get output with calendar.build()

Purpose of this library


Mini-Documentation


License

Keywords

FAQs

Last updated on 11 May 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc