# @tpp/simple-uuid

> A fast, zero dependency uuid generator that works everywhere

Latest version **1.0.0** (published 2020-04-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install @tpp/simple-uuid
pnpm add @tpp/simple-uuid
yarn add @tpp/simple-uuid
bun add @tpp/simple-uuid
```

## 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 | 2020-04-02 |
| First published | 2020-04-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | charles.lobo@gmail.com |
| Maintainers | tpp |
| Keywords | uuid, nodejs, browser |

## Links

- npm: https://www.npmjs.com/package/@tpp/simple-uuid
- Repository: https://github.com/theproductiveprogrammer/simple-uuid
- Homepage: https://github.com/theproductiveprogrammer/simple-uuid#readme
- Issues: https://github.com/theproductiveprogrammer/simple-uuid/issues
- npm.io page: https://npm.io/package/@tpp/simple-uuid

## 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

- 1.0.0 (latest) — 2020-04-02

## README

# Simple UUID

This is a simple UUID generator that has zero dependencies and works everywhere.

## Usage

Install it first:

```sh
$> npm i @tpp/simple-uuid
```

Then use it to generate a simple and unique id:

```js
let uuid = require('@tpp/simple-uuid')
uuid()
// '3insalcl'
uuid(100)
//'mw8kcgh739zhjs5g2lujpiv1ey2jv8onr4olzvgxishd8k6vv6fm8bycvixlbux4651qg8vxt26srcnxbw08sexutbir5rjbnwko'
```

It detects NodeJS’s crypto module, or the browsers crypto functionality where available and falls back to Math.random if needed.

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