Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/formkit/tempo
📆 Parse, format, manipulate, and internationalize dates and times in JavaScript and TypeScript.
https://github.com/formkit/tempo
date date-formatting datetime javascript time time-formatting typescript
Last synced: 3 days ago
JSON representation
📆 Parse, format, manipulate, and internationalize dates and times in JavaScript and TypeScript.
- Host: GitHub
- URL: https://github.com/formkit/tempo
- Owner: formkit
- License: mit
- Created: 2023-07-25T21:45:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-21T13:26:12.000Z (5 months ago)
- Last Synced: 2025-01-02T08:05:15.902Z (10 days ago)
- Topics: date, date-formatting, datetime, javascript, time, time-formatting, typescript
- Language: TypeScript
- Homepage: https://tempo.formkit.com
- Size: 3.58 MB
- Stars: 2,425
- Watchers: 9
- Forks: 33
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![Vitest](https://github.com/formkit/tempo/actions/workflows/tests.yml/badge.svg)](https://github.com/formkit/tempo/actions/workflows/tests.yml)
![GitHub Sponsors](https://img.shields.io/github/sponsors/formkit)
![NPM Version](https://img.shields.io/npm/v/%40formkit%2Ftempo)# Tempo — The easiest way to work with dates in JavaScript (and TypeScript)
Tempo is a new library in a proud tradition of JavaScript date and time libraries. Inspired by the likes of moment.js, day.js, and date-fns Tempo is built from the ground up to be as small and easy to use as possible.
Tempo is best thought of as a collection of utilities for working with `Date` objects — an important distinction from other libraries that provide custom date primitives. Under the hood, Tempo mines JavaScript's `Intl.DateTimeFormat` to extract complex data like timezones offsets and locale aware date formats giving you a simple API to format, parse, and manipulates dates.
Tempo is tiny tree-shakable framework, you can only take what you need. All functionality is available in **5.2 kB for esm** and **5.5 kB for cjs** modules (minified and brotlied). [Size Limit](https://github.com/ai/size-limit) controls the size.
---
Created by the FormKit team.