1.0.0 • Published 4 years ago

isimi v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

isimi

A package to help seamlessly integrate different holidays into your webapp.

Installation

  • Install Yarn
   yarn install isimi

Usage

isimi({ holidays: [ {}, {}, {} ] }) //general syntax

Supported event format

//Using day and month

    {
      day: 21,
      month: 7,
      stylesheet: "/tests/styles/today.css"
    }

Using the startDate and stopDate objects for events spanning over days

    {
      startDate: {
        day: 24,
        month: 7,
      },

      stopDate: {
        day: 28,
        month: 7,
      },

      stylesheet: "/tests/styles/aprilFool.css"
    }

isimi also supports calling popular holidays by name

    {
      name: "halloween",
      stylesheet: "/tests/styles/halloween.css"
    }

Holiday names isimi understands

"christmas" "halloween" "aprilfool"

Running

  yarn build --watch