# hash-the-timestamp

> Tiny utility to hash the timestamp

Latest version **1.1.0** (published 2018-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install hash-the-timestamp
pnpm add hash-the-timestamp
yarn add hash-the-timestamp
bun add hash-the-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.1.0 |
| Published | 2018-06-21 |
| First published | 2018-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 2 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jonny Burger |
| Maintainers | jonny |
| Keywords | hash, timestamp, the, blockchain |

## Links

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

## Dependencies (2)

- [is-timestamp](https://npm.io/package/is-timestamp.md) ^1.0.0
- [isomorphic-crypto](https://npm.io/package/isomorphic-crypto.md) ^3.0.0

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2018-06-21
- 1.0.1 — 2018-06-21
- 0.0.0 — 2018-06-21

## README

# hash-the-timestamp [![Build Status](https://travis-ci.org/JonnyBurger/hash-the-timestamp.svg?branch=master)](https://travis-ci.org/JonnyBurger/hash-the-timestamp) [![Coverage Status](https://coveralls.io/repos/github/JonnyBurger/hash-the-timestamp/badge.svg?branch=master)](https://coveralls.io/github/JonnyBurger/hash-the-timestamp?branch=master)

> Tiny utility to hash the timestamp

A lightweight library to efficiently hash the timestamp.

* Simple API
* Uses secure SHA512 hashes
* Useful for blockchain
* Works in the browser and on the server
* Fully tested, 100% test coverage

## Install

```
$ npm install --save hash-the-timestamp
```


## Usage

```js
const hashTheTimestamp = require('hash-the-timestamp');

hashTheTimestamp(new Date('2018-06-20 10:00:00 UTC+1'));
//=> '3a8828cb5f8dbd44f3165f3e733aac831ed164c9665e8c6e2e1b728f61db97bb7d920e3510b3c48d1a03f323d1d13c982ac9de4f3ff277f6a6fb55e34cc62c97'
```


## API

### hashTheTimestamp(timestamp)

Return value: The hash of the timestamp

#### timestamp

Type: `number`

The timestamp you want to hash.


## Contributing

Pull requests welcome! Please include tests and follow the style conventions.
Run `npm test` to verify

## License

MIT © [Jonny Burger](https://jonny.io)

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