0.4.0 • Published 1 year ago

lodate v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

lodate

Date utility functions for common date operations.

Lodate is a pure ESM package.

Install

npm install lodate

Usage Example

Using the default object

import date from "lodate"

const monthName = date.getMonthName(new Date())

console.log(monthName)

const dayOfYear = date.dayOfYear(new Date())

console.log(dayOfYear) 

You can select a specific function

import { getWeekday, getTimezone } from "lodate";

const weekday = getWeekday(new Date());

console.log(weekday);

const timezone = getTimezone();

console.log(timezone);
0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago