fdu logo@pyyupsk/fdu - Faster Date-Time Utility
Introduction

Installation

Install @pyyupsk/fdu using npm, pnpm, yarn, or bun. Get started with the ultra-fast, zero-dependency date-time library for TypeScript and JavaScript with CDN options and version information.

Package Manager

Install fdu using your preferred package manager:

npm install @pyyupsk/fdu
pnpm add @pyyupsk/fdu
yarn add @pyyupsk/fdu
bun add @pyyupsk/fdu

CDN

You can also use fdu via CDN for quick prototyping:

<script type="module">
  import { fdu } from "https://esm.sh/@pyyupsk/fdu";

  const date = fdu();
  console.log(date.format("YYYY-MM-DD"));
</script>

UMD (Browser Global)

<script src="https://unpkg.com/@pyyupsk/fdu/dist/umd/index.iife.js"></script>
<script>
  const { fdu } = window.fdu;
  const date = fdu();
  console.log(date.format("YYYY-MM-DD"));
</script>

Version Status

Beta Version

This library is currently in beta (v0.0.0-beta.3). The API is stable but may change before v1.0.0. Production use is acceptable, but consider pinning to a specific version.

Versioning

fdu follows Semantic Versioning:

  • Major (1.0.0) - Breaking changes
  • Minor (0.1.0) - New features, backwards compatible
  • Patch (0.0.1) - Bug fixes

Release Notes

See the CHANGELOG for detailed release notes.

Requirements

Runtime

The library is built with ESNext target and requires modern environments with ESM support.

  • Node.js: Version 20.0.0 or higher (tested on Node.js 20.x, 22.x, 23.x)
  • Bun: Version 1.0.0 or higher recommended
  • Browsers: Chrome 61+, Firefox 60+, Safari 11+, Edge 79+ (requires ESM support)

Note: Node.js 18.x reached End-of-Life on April 30, 2025 and is no longer supported. We recommend using Node.js 22.x (Active LTS) or later for the best performance and long-term support.

Development

To contribute or build from source, you'll need:

  • TypeScript: 5.x
  • Build Tool: tsdown
  • Test Runner: Vitest
  • Linter/Formatter: Biome
  • Package Manager: bun

Verify Installation

After installation, verify fdu is working:

import { fdu } from "@pyyupsk/fdu";

console.log(fdu().format("YYYY-MM-DD HH:mm:ss"));
// Output: "2025-10-05 15:30:00" (current date/time)

On this page