https://github.com/sadnessojisan/weedize
create kusa layout
https://github.com/sadnessojisan/weedize
date github
Last synced: about 2 months ago
JSON representation
create kusa layout
- Host: GitHub
- URL: https://github.com/sadnessojisan/weedize
- Owner: sadnessOjisan
- License: mit
- Created: 2021-01-31T08:37:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-15T20:15:03.000Z (about 5 years ago)
- Last Synced: 2025-03-23T22:46:07.299Z (over 1 year ago)
- Topics: date, github
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/weedize
- Size: 299 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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/
```ts
import { weedize } from "weedize";
const layout = weedize(new Date("2021-01-01"));
consoel.log(layout);
```
```js
[
[
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,
],
];
```