1.2.3 • Published 2 years ago

@zcorky/moment v1.2.3

Weekly downloads
20
License
MIT
Repository
github
Last release
2 years ago

moment

NPM version NPM quality Coverage Status Dependencies Build Status Known Vulnerabilities NPM download license issues

A minimalist JavaScript library that parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API, written with TypeScript, inspired by Dayjs and Moment.js

moment().startOf('month').add(1, 'day').set('year', 2019).format('YYYY-MM-DD HH:mm:ss');
  • 🕒 Familiar Moment.js API & patterns
  • 💪 Immutable
  • 🔥 Chainable
  • :sparkle: TypeScript
  • 🌐 I18n support (WIP, will be soon)
  • 🔌 Plugin System (WIP, will be soon)

Install

$ npm install @zcorky/moment

Usage

// typescript
import moment from '@zcorky/moment';

moment('2018-08-08') // parse

moment().format('{YYYY} MM-DDTHH:mm:ss SSS [Z] A') // display

moment().set('month', 3).month() // get & set

moment().add(1, 'year') // manipulate

Relatived

  • dayjs - immutable date time library alternative to Moment.js with the same modern API.
  • moment - Parse, validate, manipulate, and display dates in javascript.
  • luxon - ⏱ A library for working with dates and times in JS.

License

MIT © Moeover

1.2.3

2 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

4 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago