# light-random

> Ultra-lightweight, cryptographically weak, alphanumerical, package-independent random string generator

Latest version **1.1.2** (published 2018-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install light-random
pnpm add light-random
yarn add light-random
bun add light-random
```

## 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.1.2 |
| Published | 2018-06-19 |
| First published | 2018-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thiago Brezinski |
| Maintainers | thiagobrez |
| Keywords | light, lightwheight, ultra, random, string, alphanumerical, crypto, generator, password, independent |

## Links

- npm: https://www.npmjs.com/package/light-random
- Repository: https://github.com/thiagobrez/light-random
- Homepage: https://github.com/thiagobrez/light-random#readme
- Issues: https://github.com/thiagobrez/light-random/issues
- npm.io page: https://npm.io/package/light-random

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 1.1.2 (latest) — 2018-06-19
- 1.1.1 — 2018-06-19
- 1.1.0 — 2018-06-19
- 1.0.0 — 2018-06-15
- 0.0.4 — 2018-06-15
- 0.0.3 — 2018-06-15
- 0.0.2 — 2018-06-15
- 0.0.1 — 2018-06-15

## README

# light-random

Ultra-lightweight, cryptographically weak, alphanumerical, package-independent random string generator.

### Installation

`npm install --save light-random`

or

`yarn add light-random`

### API

**`lightRandom(length: number): string`**

Default length: 8

### Usage

Require module
```javascript
const lightRandom = require('light-random');
```

or import with ES6

```javascript
import {lightRandom} from 'light-random';
```

Then call it

```javascript
lightRandom();
//default length: 8
//outputs 'bkiVCGkd'

lightRandom(15);
//outputs 'NPf78EK3oNPiU3t'

lightRandom(50);
//outputs 'TXU8A9K2cPfA4y76IXy3o4x6SQlxTLA26HOMLklVo4vJ0Rxjdv'
```

### License

MIT.

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