# reqid

> an request-id generator

Latest version **1.0.1** (published 2019-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install reqid
pnpm add reqid
yarn add reqid
bun add reqid
```

## 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 | 2019-12-26 |
| First published | 2019-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gusti Andryean Budiman |
| Maintainers | gandryeanb |

## Links

- npm: https://www.npmjs.com/package/reqid
- Repository: https://github.com/Gandryeanb/uniqueID
- Homepage: https://github.com/Gandryeanb/uniqueID#readme.md
- Issues: https://github.com/Gandryeanb/uniqueID/issues
- npm.io page: https://npm.io/package/reqid

## Dependencies (2)

- [chai](https://npm.io/package/chai.md) ^4.2.0
- [mocha](https://npm.io/package/mocha.md) ^6.2.2

## Recent versions

- 1.0.1 (latest) — 2019-12-26
- 1.0.0 — 2019-12-23

## README

# Reqid
----
## what is reqid ?
reqid is an simple random string generator with a timestamp.   
install with:

    npm install reqid


## Usage example   
----
### If you want to use `option`
Example:
```js
var Reqid = require("reqid");
var option = {
    randomLength: 10,
    separator: '-'
}
var reqid = new Reqid(option);

var requestId = reqid.generate();
console.log(requestId); // 2019-12-26-22-13-16-886-7573869517
```

### If you want to use without `option`
Example:
```js
var Reqid = require("reqid");
var reqid = new Reqid();

var requestId = reqid.generate();
console.log(requestId); // 20191226221316886
```

#### `options` object properties
| Property     | Default   | Description |
|--------------|-----------|-------------|
| randomLength | 4         | a random number after timestamp |
| separator    | ""        | a separator between timestamp |

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