1.1.1 • Published 12 months ago

@iguanads/tempo v1.1.1

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

Iguana DS Bento - Tempo

Installation

Install:

pnpm add @iguanads/tempo

Use

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-DD

Dev

pnpm dev

Build

pnpm build

Lint

pnpm lint
1.1.1

12 months ago

1.1.0

12 months ago

1.0.1

1 year ago

1.0.0

1 year ago