Skip to content

@gj-kit/format

Explicit-by-construction date, number, byte, duration, and Korean currency formatting for TypeScript.

Current npm latest: 0.1.1

Use it when timezone, locale, unit, and currency rendering choices must be visible in the call site.

Do not use it to own application copy, user locale preference, or financial rounding policy outside its documented contract.

Outcome: A stable display label whose timezone and separator are explicit at the call site.

Terminal window
pnpm add @gj-kit/format

Choose the timezone and separator in code; do not let persisted or operational values inherit device defaults.

Copy this first, then replace only the app-owned values named above.

import { formatDateTime } from '@gj-kit/format';
export const dateLabel = formatDateTime(Date.UTC(2026, 7, 26, 0, 0), {
timeZone: 'Asia/Seoul',
separator: '-',
});

Engines: node >=20

This package has no peer dependencies.

Entry Exported symbols
Root entry 31

Do not rely on implicit device timezone or locale defaults for persisted or operational values.

complete API reference contains every public function, class, type, constant, and error contract generated from release declarations. Each item shows its import path, release signature, and package version.

@gj-kit/expo-ui, @gj-kit/expo-workouts

npm · GitHub