Skip to main content

Built and signed on GitHub Actions

format string with Python f-string or date command syntax

This package works with Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Deno
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
76%
Published
3 months ago (1.0.3)
type alias DateHanler

Handler definitions for DateLikeFormatter

.format() method dispatches based on this handler definitions. Handler function takes an argument value, and returns formatted string.

Type Parameters

Definition

Record<string, (v: T) => string>

Add Package

deno add jsr:@ymd-h/format-js

Import symbol

import { type DateHanler } from "@ymd-h/format-js";

---- OR ----

Import directly with a jsr specifier

import { type DateHanler } from "jsr:@ymd-h/format-js";

Add Package

npx jsr add @ymd-h/format-js

Import symbol

import { type DateHanler } from "@ymd-h/format-js";

Add Package

yarn dlx jsr add @ymd-h/format-js

Import symbol

import { type DateHanler } from "@ymd-h/format-js";

Add Package

pnpm dlx jsr add @ymd-h/format-js

Import symbol

import { type DateHanler } from "@ymd-h/format-js";

Add Package

bunx jsr add @ymd-h/format-js

Import symbol

import { type DateHanler } from "@ymd-h/format-js";