# is-timestamp

> Checks if a value is a timestamp

Latest version **1.0.0** (published 2016-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-timestamp
pnpm add is-timestamp
yarn add is-timestamp
bun add is-timestamp
```

## 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.0.0 |
| Published | 2016-06-20 |
| First published | 2016-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | François Chalifour |
| Maintainers | francoischalifour |
| Keywords | is, check, timestamp, date |

## Links

- npm: https://www.npmjs.com/package/is-timestamp
- Repository: https://github.com/francoischalifour/is-timestamp
- Homepage: https://github.com/francoischalifour/is-timestamp#readme
- Issues: https://github.com/francoischalifour/is-timestamp/issues
- npm.io page: https://npm.io/package/is-timestamp

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-06-20

## README

# is-timestamp

> Checks if a value is a timestamp

## Install

```console
$ npm install is-timestamp
```

## Usage

```js
const isTimestamp = require('is-timestamp')

isTimestamp(new Date())
// => true

isTimestamp(1466421736923)
// => true

isTimestamp('1466421736923')
// => true

isTimestamp('1466421736923', true)
// => false (because strict mode on)

isTimestamp('foo')
// => false
```

## Notes

This module works by default for both *integers* and *strings*. If you only want to use integers, use the strict mode:

```js
isTimestamp('1466421736923', true)
// => false
```

## License

MIT © [François Chalifour](http://francoischalifour.com)

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