# hexadecimal-gen

> Generating a random hexadecimal numer of bits.

Latest version **1.0.1** (published 2020-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install hexadecimal-gen
pnpm add hexadecimal-gen
yarn add hexadecimal-gen
bun add hexadecimal-gen
```

## 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.1 |
| Published | 2020-12-01 |
| First published | 2020-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | even. |
| Maintainers | even. |
| Keywords | hex, hexadecimal, generator, random |

## Links

- npm: https://www.npmjs.com/package/hexadecimal-gen
- npm.io page: https://npm.io/package/hexadecimal-gen

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-12-01

## README

# Hexadecimal Generator
A simple random hexadecimal generator.

## Installation
```
npm install hexadecimal-gen
```

## Usage

```javascript
var hgen = require('hexadecimal-gen');

var hex = hgen(128);
console.log(hex); // Outputs something like: 128d93ec4e4c737bbeae10c35db6becb
```

## API
```javascript
hgen(bits)
```

The `bits` parameter indicates how many bits should be generated and expressed as hexadecimal. If `bits`
is omitted the default will be 64 bits (16 hex characters).

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