# date-now

> A requirable version of Date.now()

Latest version **1.0.1** (published 2014-06-11) · 0 weekly downloads

## Install

```sh
npm install date-now
pnpm add date-now
yarn add date-now
bun add date-now
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2014-06-11 |
| First published | 2013-01-23 |
| Weekly downloads | 0 |
| TypeScript types | separate (@types/date-now) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Raynos |
| Maintainers | raynos |

## Links

- npm: https://www.npmjs.com/package/date-now
- Repository: https://github.com/Raynos/date-now
- Issues: https://github.com/Raynos/date-now/issues
- npm.io page: https://npm.io/package/date-now

## Recent versions

- 1.0.1 (latest) — 2014-06-11
- 1.0.0 — 2014-04-09
- 0.1.4 — 2013-02-09
- 0.1.2 — 2013-02-09
- 0.1.3 — 2013-01-29
- 0.1.1 — 2013-01-27
- 0.1.0 — 2013-01-23

## README

# date-now

[![build status][1]][2]

[![browser support][3]][4]


A requirable version of Date.now()

Use-case is to be able to mock out Date.now() using require interception.

## Example

```js
var now = require("date-now")

var ts = now()
var ts2 = Date.now()
assert.equal(ts, ts2)
```

## example of seed

```
var now = require("date-now/seed")(timeStampFromServer)

// ts is in "sync" with the seed value from the server
// useful if your users have their local time being a few minutes
// out of your server time.
var ts = now()
```

## Installation

`npm install date-now`

## Contributors

 - Raynos

## MIT Licenced

  [1]: https://secure.travis-ci.org/Raynos/date-now.png
  [2]: http://travis-ci.org/Raynos/date-now
  [3]: http://ci.testling.com/Raynos/date-now.png
  [4]: http://ci.testling.com/Raynos/date-now

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