1.7.0 • Published 4 years ago

fastis v1.7.0

Weekly downloads
21
License
MIT
Repository
-
Last release
4 years ago

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';