@iguanads/tempo
v1.1.1
Published
Iguana Design System - Tempo - by Bento
Downloads
266
Readme
Iguana DS Bento - Tempo
Installation
Install:
pnpm add @iguanads/tempoUse
Create config file
Create a config file in the root of your project called tempo.config.ts:
import { tempo } from '@iguanads/tempo'
import { timezone, utc } from '@iguanads/tempo/plugins'
tempo.extend(utc)
tempo.extend(timezone)use with React
import { tempo } from '@iguanads/tempo'
tempo() // return a date Tempo object
tempo(new Date()) // return a date Tempo object
tempo(new Date()).tz("America/Cayman") // return a date Tempo object with timezone
tempo(2022-06-10).format("YYYY-MM-DD") // return a string with the format YYYY-MM-DDDev
pnpm devBuild
pnpm buildLint
pnpm lint