# moment-precise-range

> moment js with precision time

Latest version **0.2.0** (published 2016-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install moment-precise-range
pnpm add moment-precise-range
yarn add moment-precise-range
bun add moment-precise-range
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2016-07-06 |
| First published | 2014-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Rob Dawson |
| Maintainers | mtscout6, psulek |
| Keywords | moment |

## Links

- npm: https://www.npmjs.com/package/moment-precise-range
- Repository: https://github.com/mtscout6/moment-precise-range
- Issues: https://github.com/mtscout6/moment-precise-range/issues
- npm.io page: https://npm.io/package/moment-precise-range

## Recent versions

- 0.2.0 (latest) — 2016-07-06
- 0.1.1 — 2015-07-02
- 0.1.0 — 2014-08-07
- 0.0.0 — 2014-08-07

## README

# moment-precise-range

[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependencies][dependencies-image]][dependencies-url]

A moment.js plugin to display human readable date/time ranges with precision.

## Installation

```
npm install moment-precise-range --save
```

## Usage

```
// Will be the moment return by the moment module, with preciseDiff appended
var moment = require('moment-precise-range');

var result = moment.preciseDiff(moment('2013-10-21 10:15:40', 'YYYY-MM-DD HH:mm:ss'),
                                moment('2014-02-02 01:01:01', 'YYYY-MM-DD HH:mm:ss'));

console.log(result); // 3 months 11 days 14 hours 45 minutes a few seconds
```

[npm-url]: https://npmjs.org/package/moment-precise-range
[npm-image]: http://img.shields.io/npm/v/moment-precise-range.svg

[travis-url]: https://travis-ci.org/mtscout6/moment-precise-range
[travis-image]: https://travis-ci.org/mtscout6/moment-precise-range.svg?branch=master

[coveralls-url]: https://coveralls.io/r/mtscout6/moment-precise-range
[coveralls-image]: https://img.shields.io/coveralls/mtscout6/moment-precise-range.svg?branch=master

[dependencies-url]: https://www.versioneye.com/user/projects/53e3f13ce0a229f1b7000057
[dependencies-image]: https://www.versioneye.com/user/projects/53e3f13ce0a229f1b7000057/badge.svg

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