isimi

    1.0.0 • Public • Published

    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

    Install

    npm i isimi

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    8.2 kB

    Total Files

    16

    Last publish

    Collaborators

    • slkhadeeja