Skip to content
pubscout

holiday_jp

0.0.8, released 4 years ago by wapa5pow.com

Get Japanese holidays using the official holiday_jp dataset.

WASM-ready
$ flutter pub add holiday_jp
Source repository

What it does

Provides functions to query Japanese holidays by specific dates, check if a given date is a holiday, and retrieve holidays within a date range.

AI-written summary of version 0.0.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to check if a specific date is a public holiday in Japan.
  • You want to list Japanese holidays between a start and end date.

Skip it when

  • You need holiday information for countries other than Japan.

Strengths

  • Simple and straightforward API for querying Japanese holidays.
  • Uses the established holiday_jp dataset.

Weaknesses

  • Limited solely to Japanese holidays.
  • Dataset updates may require package updates.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

not documented

import 'package:holiday_jp/holiday_jp.dart' as holiday_jp;

void main() {
  final marineDay = DateTime.utc(2020, 7, 23);
  final holiday = holiday_jp.getHoliday(marineDay);
  final isHoliday = holiday_jp.isHoliday(marineDay);
}

Alternatives

Packages that do the same job and could replace holiday_jp.