# @tamalweb/use-time-ago

> React hook to get time ago or time since current time (time ago).

Latest version **1.0.0** (published 2018-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tamalweb/use-time-ago
pnpm add @tamalweb/use-time-ago
yarn add @tamalweb/use-time-ago
bun add @tamalweb/use-time-ago
```

## 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 | 2018-11-12 |
| First published | 2018-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tamal Dey |
| Maintainers | tamalweb |
| Keywords | react, hooks, time, timeago, passed |

## Links

- npm: https://www.npmjs.com/package/@tamalweb/use-time-ago
- Repository: https://github.com/tamal3053/use-time-ago
- Homepage: https://github.com/tamal3053/use-time-ago#readme
- Issues: https://github.com/tamal3053/use-time-ago/issues
- npm.io page: https://npm.io/package/@tamalweb/use-time-ago

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^16.7.0-alpha.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-11-12

## README

# `@tamal3053/use-time-ago`

> React hook for time since current time in readable format. React Time Ago Custom Hook.

> **Note:** This is using the new [React Hooks API Proposal](https://reactjs.org/docs/hooks-intro.html)
> which is subject to change until React 16.7 final.
>
> You'll need to install `react`, `react-dom`, etc at `^16.7.0-alpha.0`

## Install

```sh
yarn add tamal3053/use-time-ago
```

## Usage

```js
import useTimeAgo from 'tamal3053/use-time-ago';

function MyComponent() {
  return useTimeAgo( new Date() - 360000 ); // 6 minutes ago
}
```

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