Skip to main content

Introduction

Chronosis is a crazy small, crazy fast date management library, built to plug all the nasty, painful holes in the built-in Date class. Many libraries built for a similar purpose (moment and luxon come to mind) are absolutely massive, so Chronosis is less than 1 kilobyte when gzipped! That means you can import the entirety of Chronosis for less than just the format function from date-fns.

These very real savings have a big effect on user experience. According to bundlephobia, Chronosis downloads ~23x faster than luxon (339ms vs. 19ms).

Installation​

Install chronosis from npm with your favorite package manager.

npm install chronosis

Usage​

To use chronosis in your code, just import Chronosis from the package, and start programming!

import { Chronosis } from 'chronosis'

const now = new Chronosis()
note

Documentation will be in ESM module format, but Chronosis supports CJS as well!