weedize
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

weedize

Create GitHub weed layout. It is [[Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday],[Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday],...] in a year from start date.

how to use

Doc: https://sadnessojisan.github.io/weedize/

import { weedize } from "weedize";

const layout = weedize(new Date("2021-01-01"));

consoel.log(layout);
[
  [
    undefined,
    undefined,
    undefined,
    undefined,
    undefined,
    new Date("2021-01-01T00:00:00.000Z"),
    new Date("2021-01-02T00:00:00.000Z"),
  ],
  [
    new Date("2021-01-03T00:00:00.000Z"),
    new Date("2021-01-04T00:00:00.000Z"),
    new Date("2021-01-05T00:00:00.000Z"),
    new Date("2021-01-06T00:00:00.000Z"),
    new Date("2021-01-07T00:00:00.000Z"),
    new Date("2021-01-08T00:00:00.000Z"),
    new Date("2021-01-09T00:00:00.000Z"),
  ],
  ,...,
  [
    new Date("2021-12-26T00:00:00.000Z"),
    new Date("2021-12-27T00:00:00.000Z"),
    new Date("2021-12-28T00:00:00.000Z"),
    new Date("2021-12-29T00:00:00.000Z"),
    new Date("2021-12-30T00:00:00.000Z"),
    new Date("2021-12-31T00:00:00.000Z"),
    undefined,
  ],
];

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i weedize

    Weekly Downloads

    1

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    7.58 kB

    Total Files

    9

    Last publish

    Collaborators

    • sadness.ojisan