# edate

> ECMA Script Date extension

Latest version **0.0.2** (published 2011-11-17) · 0 weekly downloads

## Install

```sh
npm install edate
pnpm add edate
yarn add edate
bun add edate
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2011-11-17 |
| First published | 2011-09-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Antono Vasiljev |
| Maintainers | antono |

## Links

- npm: https://www.npmjs.com/package/edate
- Repository: https://github.com/antono/edate.js
- npm.io page: https://npm.io/package/edate

## Recent versions

- 0.0.2 (latest) — 2011-11-17
- 0.0.1 — 2011-09-01

## README

# Date is fun with modern ECMAScript

This library extends Number and Date with some useful getters
and functions:

    (1).day.ago
    (2).weeks.fromNow
    (3).hours.since(Date.yesterday())
    (4).minutes.after(Date.now() + (1).day)
    (5).weeks.fromNow.atTheEndOfDay
    (7).weeks.ago.atTheBeginningOfYear

Read the code for more docs and have fun!
Bonus points for patches :)

## Testing

    npm install -g jasmine-node
    make spec

## It extends Date?

Well it is. Something to think about:

- http://perfectionkills.com/extending-built-in-native-objects-evil-or-not/
- http://www.nczonline.net/blog/2010/03/02/maintainable-javascript-dont-modify-objects-you-down-own/

## Contributors:

 - Antono Vasiljev
 - Vasiliy Ermolovich
 - AJ ONeal
 - [and other](http://github.com/antono/edate.js/contributors)...

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