Metadata-Version: 2.4
Name: isworkday
Version: 1.0.0
Summary: Command-line predicate: is DATE a statutory workday in REGION? One word, one exit code, official calendars that update themselves. Only cn (mainland China) so far.
License-Expression: MIT
License-File: LICENSE
License-File: NOTICE
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# isworkday

A command-line predicate that does what its name says: `isworkday cn && ./deploy.sh`.

> Only `cn` (mainland China) is supported so far.

Answers follow the official calendar, kept current online: next year's schedule needs no upgrade, and a date not yet announced is `unknown`, never a guess.

## Install

```sh
brew install pentatea/tap/isworkday
uvx isworkday cn                      # or: uv tool install isworkday
npx -y @isworkday/cli cn              # or: npm i -g @isworkday/cli
go install github.com/PentaTea/isworkday@latest
```

In a container or CI, take the binary directly:

```sh
curl -fsSL https://github.com/PentaTea/isworkday/releases/latest/download/isworkday-$(uname -s)-$(uname -m).tar.gz | tar -xzC /usr/local/bin isworkday
```

macOS builds need macOS 13 or later.

## Use

```console
$ isworkday cn
2026-10-19 Mon · weekday
true
$ isworkday cn 2026-10-10
2026-10-10 Sat · workday (国庆节 补班)
true
```
