1.0.0 • Published 5 months ago

@misung-dev/mydaybox v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

myday-box

A collection of helper functions for formatting and manipulating dates, written in TypeScript.

npm

Features

  • formatDate: Format a date into a localized string (e.g. "2024년 5월 16일")
  • isWeekend: Check if a date is Saturday or Sunday
  • getDayName: Get the day of the week (e.g. "월요일")

Demo

Playground

Installation

npm install mydaybox

Usage

import { formatDate, isWeekend, getDayName } from 'mydaybox';

const today = new Date();

console.log(formatDate(today)); // "2024년 5월 16일"
console.log(isWeekend(today));  // false
console.log(getDayName(today)); // "월요일"

Running Tests

npm test

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © name