# moment-random

> Generates a random momentjs object

Latest version **1.1.0** (published 2020-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install moment-random
pnpm add moment-random
yarn add moment-random
bun add moment-random
```

## 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.1.0 |
| Published | 2020-08-26 |
| First published | 2016-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Ivan Mrvelj |
| Maintainers | perpaer |

## Links

- npm: https://www.npmjs.com/package/moment-random
- Repository: https://github.com/imrvelj/moment-random
- Homepage: https://github.com/imrvelj/moment-random#readme
- Issues: https://github.com/imrvelj/moment-random/issues
- npm.io page: https://npm.io/package/moment-random

## Recent versions

- 1.1.0 (latest) — 2020-08-26
- 1.0.5 — 2019-04-20
- 1.0.4 — 2018-07-20
- 1.0.3 — 2017-10-05
- 1.0.2 — 2017-04-22
- 1.0.1-1 — 2017-04-22
- 1.0.0 — 2017-04-17
- 0.9.1 — 2017-04-16
- 0.1.1 — 2016-11-08
- 0.1.0 — 2016-11-08

## README

# moment-random
![Build Status](https://travis-ci.org/imrvelj/moment-random.svg?branch=master)

<img src="https://github.com/imrvelj/moment-random/raw/master/moment.png" style="width: 100px" />

> Generates a new random moment.js object

## Install
*make sure you have moment installed*

npm or yarn
```
$ npm install --save moment-random
```
```
$ yarn add moment-random
```

## Usage


---
Just require it like any other library

```js
const momentRandom = require('moment-random');

momentRandom();
// > random date in the past
```

You can also specify an interval
```js
momentRandom(end)
// > random date between 0 unix time and {end} dates

momentRandom(end, start)
// > random date between {start} and {end} dates
```

**Arguments**

- `end, start` - anything a moment constructor accepts (see [moment.js docs](http://momentjs.com/docs/#/parsing/) )

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