/fastis

A helper package for working with dates & time in JS/TS.

Primary LanguageTypeScriptMIT LicenseMIT

Fastis

A library for working with Dates & Timestamps. Powered by date-fns. Created for Human Collective, but now maintained by @rdrnt.

How To Use

  1. yarn add fastis in your project

  2. If you plan on using Timestamps, you will need to initialize Fastis with your firebase instance in your project:

import firebase from 'firebase/app';
import 'firebase/firestore';
import { initialize } from 'fastis';

firebase.initializeApp();

initialize(firebase);

This is required because Timestamps are server dependant on your project.

  1. You're set! import { format } from 'fastis';