Socket
Book a DemoInstallSign in
Socket

@ied/date

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ied/date

# Date (deprecated, please use https://www.npmjs.com/package/date-fns)

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-97.96%
Maintainers
3
Weekly downloads
 
Created
Source

Date

Date (deprecated, please use https://www.npmjs.com/package/date-fns)

Install

yarn add @ied/date

Use

import { getRelativeDate } from '@ied/date'

const date = '2018-02-13T10:42:21.341Z'
const formatedDate = getRelativeDate(date)

Types

type Locale = 'en' | 'fr' | 'de' | 'da'
type GetRelativeDate = (string: string | Date, locale: Locale) => string

FAQs

Package last updated on 09 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts