Options
All
  • Public
  • Public/Protected
  • All
Menu

Module index

Index

Functions

Const weedizeFrom

  • weedizeFrom(startDate: Date): Week[]
  • create GitHub's Weed placeholder from received start date.

    example

    Here's a simple example:

    const actual = weedize(new Date("2021-01-01"));
    // Prints: [[undefined, ..., 2021-01-01T00:00:00.000Z, 2021-01-02T00:00:00.000Z], ..., [...,"2021-12-30T00:00:00.000Z","2021-12-31T00:00:00.000Z", undefined]]
    console.log(actual);
    
    // Caution: the array item type is Date, not string.
    

    Parameters

    • startDate: Date

      start Date of weed

    Returns Week[]

    GitHub Weed Calendar placeholder

Const weedizeTo

  • weedizeTo(end: Date): Week[]

Generated using TypeDoc