# @tadashi/hex-id

> Creates an unique ID based on the system time.

Latest version **3.0.2** (published 2023-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tadashi/hex-id
pnpm add @tadashi/hex-id
yarn add @tadashi/hex-id
bun add @tadashi/hex-id
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2023-09-13 |
| First published | 2019-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thiago Lagden |
| Maintainers | lagden |
| Keywords | id, unique, time, ObjectID |

## Links

- npm: https://www.npmjs.com/package/@tadashi/hex-id
- npm.io page: https://npm.io/package/@tadashi/hex-id

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 3.0.2 (latest) — 2023-09-13
- 3.0.1 — 2023-09-13
- 3.0.0 — 2023-09-13
- 2.0.0 — 2020-04-14
- 1.1.1 — 2019-09-11
- 1.1.0 — 2019-04-22
- 1.0.1 — 2019-01-23
- 1.0.0 — 2019-01-23

## README

# @tadashi/hex-id

[![NPM version][npm-img]][npm]
[![Build Status][ci-img]][ci]
[![Coverage Status][coveralls-img]][coveralls]

[npm-img]:         https://img.shields.io/npm/v/@tadashi/hex-id.svg
[npm]:             https://www.npmjs.com/package/@tadashi/hex-id
[ci-img]:          https://github.com/lagden/hex-id/actions/workflows/nodejs.yml/badge.svg
[ci]:              https://github.com/lagden/hex-id/actions/workflows/nodejs.yml
[coveralls-img]:   https://coveralls.io/repos/github/lagden/hex-id/badge.svg?branch=master
[coveralls]:       https://coveralls.io/github/lagden/hex-id?branch=master


Creates the unique ID based on the system time. (compatible with Mongo's ObjectID).

## Install

```
$ npm i @tadashi/hex-id
```


## Usage

This library can be used on the client or server side.

```js
import hexID from '@tadashi/hex-id'


hexID()
// => 5c48b2d79b156cb4effe05c8

hexID()
// => 5c48b2d79b156cb4effe05c9
```


## Team

[<img src="https://avatars.githubusercontent.com/u/130963?s=390" alt="Lagden" width="90">](https://github.com/lagden)


## Donate ❤️

- BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4


## License

MIT © [Thiago Lagden](https://github.com/lagden)

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