1.0.5 • Published 2 years ago

just-today v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Just-Today

A simple helper to get the numeric value of the actual day, month or year.
Disclaimer: this package has been done for learning purposes.

How to use it

Simply import the library and ask for named imports as day, month or year. You'll obtain their actual numeric values (at the time the script will be running).

import { month, day, year } from 'just-today'

console.log(`Today is ${day}/${month}/${year}`)

You can also obtain a more verbose and formated value providing a specific locale to the function dayMonthVerbose:

import { dayMonthVerbose } from 'just-today'

let dayMonthUSA = dayMonthVerbose('en-US')
let dayMonthITA = dayMonthVerbose('it-IT')

console.log(dayMonthUSA) // January 15

console.log(dayMonthITA) // 15 gennaio
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago