![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
A Collection of TypeScript utilities for implementing calendar and datepicker. Zero-dependency and lightweight (only 462B).
A Collection of TypeScript utilities for implementing calendar and datepicker. Zero-dependency and lightweight (only 462B).
Using yarn:
$ yarn add greg-cal
Get an array of calendar dates for a given month and year appended with empty dates to fill the days before the first calendar day.
Name | Type | Default Value | Description |
---|---|---|---|
year | string or number | Calendar Year | |
month | number | Calendar Month (0 - 11) | |
firstDayOfTheWeek | "sun" or "mon" | "sun" | First day of the week, "sun" for Sunday and "mon" for Monday |
Type | Description |
---|---|
Date[] | Calendar dates |
getDates(2018, 8, 'mon');
// => [ null, null, null, null, null, 2018-08-31T17:00:00.000Z, 2018-09-01T17:00:00.000Z, ... ]
Get all localized day names in a week.
Name | Type | Default Value | Description |
---|---|---|---|
locale | string | "en-US" | Locale code (e.g. "en-US", "id-ID") |
format | "long" or "short" | "short" | Day format |
firstDayOfTheWeek | "sun" or "mon" | "sun" | First day of the week, "sun" for Sunday and "mon" for Monday |
Type | Description |
---|---|
string[] | Day names |
getDays('en-US', 'short', 'mon');
//=> [ 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun' ]
Get all localized month names in a year.
Name | Type | Default Value | Description |
---|---|---|---|
locale | string | "en-US" | Locale code (e.g. "en-US", "id-ID") |
format | "numeric", "2-digit", "long" or "short" | "long" | Month format |
Type | Description |
---|---|
string[] | Month names |
getMonths('en-US', 'short');
//=> [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ]
FAQs
A Collection of TypeScript utilities for implementing calendar and datepicker. Zero-dependency and lightweight (only 462B).
The npm package greg-cal receives a total of 337 weekly downloads. As such, greg-cal popularity was classified as not popular.
We found that greg-cal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.