# @zcorky/moment

> immutable date time library written with TypeScript, inspired by dayjs and moment

Latest version **1.2.3** (published 2021-12-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @zcorky/moment
pnpm add @zcorky/moment
yarn add @zcorky/moment
bun add @zcorky/moment
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2021-12-16 |
| First published | 2019-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 37.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Zero |
| Maintainers | uniquecolesmith |
| Keywords | zcorky, moment, dayjs, time, date, immutable, typescript |

## Links

- npm: https://www.npmjs.com/package/@zcorky/moment
- Repository: https://github.com/zcorky/moment
- Issues: https://github.com/zcorky/moment/issues
- npm.io page: https://npm.io/package/@zcorky/moment

## Dependencies (1)

- [@zcorky/is](https://npm.io/package/@zcorky/is.md) ^1.0.7

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.2.3 (latest) — 2021-12-16
- 1.2.2 — 2021-07-19
- 1.2.1 — 2021-07-19
- 1.2.0 — 2020-11-12
- 1.1.0 — 2020-06-11
- 1.0.12 — 2019-09-06
- 1.0.11 — 2019-03-30
- 1.0.10 — 2019-02-17
- 1.0.9 — 2019-01-14
- 1.0.8 — 2019-01-12
- 1.0.7 — 2019-01-10
- 1.0.6 — 2019-01-10
- 1.0.5 — 2019-01-09
- 1.0.4 — 2019-01-09
- 1.0.3 — 2019-01-08
- … 3 more at https://npm.io/package/@zcorky/moment/versions

## README

# moment

[![NPM version](https://img.shields.io/npm/v/@zcorky/moment.svg?style=flat)](https://www.npmjs.com/package/@zcorky/moment)
[![NPM quality](http://npm.packagequality.com/shield/%40zcorky%2Fmoment.svg)](http://packagequality.com/#?package=@zcorky/moment)
[![Coverage Status](https://codecov.io/gh/zcorky/moment/branch/master/graph/badge.svg)](https://codecov.io/gh/zcorky/moment)
[![Dependencies](https://img.shields.io/david/zcorky/moment.svg?style=flat-square)](https://david-dm.org/zcorky/moment)
[![Build Status](https://travis-ci.com/zcorky/moment.svg?branch=master)](https://travis-ci.com/zcorky/moment)
[![Known Vulnerabilities](https://snyk.io/test/npm/@zcorky/moment/badge.svg?style=flat-square)](https://snyk.io/test/npm/@zcorky/moment)
[![NPM download](https://img.shields.io/npm/dm/@zcorky/moment.svg?style=flat-square)](https://www.npmjs.com/package/@zcorky/moment)
![license](https://img.shields.io/github/license/zcorky/moment.svg)
[![issues](https://img.shields.io/github/issues/zcorky/moment.svg)](https://github.com/zcorky/moment/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

```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

```js
// 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](https://github.com/iamkun/dayjs) -  immutable date time library alternative to Moment.js with the same modern API.
* [moment](https://github.com/moment/moment/) - Parse, validate, manipulate, and display dates in javascript.
* [luxon](https://github.com/moment/luxon) - ⏱ A library for working with dates and times in JS.

## License

MIT © [Moeover](https://moeover.com)

---
_Source: https://npm.io/package/@zcorky/moment · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
