# Sky24n/common_utils

Dart common utils library. DateUtil, EncryptUtil, JsonUtil, LogUtil, MoneyUtil, NumUtil, ObjectUtil,  RegexUtil, TextUtil, TimelineUtil, TimerUtil. 包含日期，正则，倒计时，时间轴等工具类。

Repository: https://github.com/Sky24n/common_utils
Canonical: https://ross.abutalabs.com/products/common_utils
Language: Dart
License: BSD-2-Clause
License Family: permissive
Topics: dateutil, logutil, timerutil, regexutil, textutil, timelineutil, moneyutil, numutil, objectutil, endecodeutil, dart, flutter, dart-package
Last push: 2023-01-09T15:02:18+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2914, "days_push": 1332, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1454, forks 263 (observed 2026-08-28T04:04:46.675094+00:00)

## What it is
A Dart utility library providing common helper classes such as DateUtil, EncryptUtil, JsonUtil, LogUtil, MoneyUtil, NumUtil, ObjectUtil, RegexUtil, TextUtil, TimelineUtil, and TimerUtil. It works in pure Dart projects and underpins the flustars library for Flutter-specific utilities.

## Use cases
- format and convert dates in Dart
- validate phone numbers, emails, and ID cards with regex
- convert yuan to fen precisely with money formatting
- perform precise decimal arithmetic without precision loss
- countdown timers and scheduled tasks
- md5 and base64 encode/decode strings
- check if strings, lists, or maps are empty
- format bank card numbers and hide phone digits

## When to choose
- you need a broad set of small utility helpers in a Dart or Flutter project
- you want reliable date formatting, regex validation, or money conversion without writing it yourself
- you already use flustars and want its underlying utility package

## When to avoid
- you need actively maintained utilities with recent updates
- you need Flutter-specific helpers like screen adaptation or shared preferences (use flustars instead)
- you prefer specialized libraries for encryption or date handling with richer APIs

## Facets
- artifact type: library
- maturity: maintenance
- function: date-time, serialization, logging, cryptography, math, error-handling
- domain: developer-tools, cross-platform, mobile-development
- platform: cross-platform
- tags: dart-package, utility-classes, date-formatting, regex-validation, money-conversion, timer, timeline, flutter

## Member repositories
- Sky24n/common_utils (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:46.675094+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:41.297684+00:00, confidence not recorded.
  - readme: https://github.com/Sky24n/common_utils (fetched 2026-08-28T04:04:46.675094+00:00, sha bf5583ce547a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
