An open API service indexing awesome lists of open source software.

https://github.com/nextcloud-libraries/nextcloud-moment

Customized moment.js for Nextcloud https://npmjs.org/@nextcloud/moment
https://github.com/nextcloud-libraries/nextcloud-moment

nextcloud-plugin

Last synced: 11 months ago
JSON representation

Customized moment.js for Nextcloud https://npmjs.org/@nextcloud/moment

Awesome Lists containing this project

README

          

# @nextcloud/moment

[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud-libraries/nextcloud-moment)](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-moment)
![Build Status](https://img.shields.io/github/actions/workflow/status/nextcloud-libraries/nextcloud-moment/lint-eslint.yml)
[![npm](https://img.shields.io/npm/v/@nextcloud/moment.svg)](https://www.npmjs.com/package/@nextcloud/moment)
[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://nextcloud.github.io/nextcloud-moment/)

Customized [moment.js](https://momentjs.com/) for Nextcloud automatic locale detection.

## Installation

```
npm i -S @nextcloud/moment
```

## Usage

```js
import moment from '@nextcloud/moment'

moment(1578511019).format('L')
// -> returns date formatted in format according to user locale
```