# random-password

> Generate random password.

Latest version **0.1.2** (published 2016-04-08) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-04-08 |
| First published | 2016-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Letian |
| Maintainers | letian |
| Keywords | password, generator, random |

## Links

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

## Recent versions

- 0.1.2 (latest) — 2016-04-08
- 0.1.1 — 2016-04-07
- 0.1.0 — 2016-04-07

## README

# random-password

Generate random password.

## Install
```
$ npm install random-password --save
```

## Example

The length of password should be gived: 
```js
var generator=require('random-password');

generator(4);   // 'WA6n'

generator(10);   // '49Pm!N&i9M'
```

The table to generate password could be specified:
```js
generator(4, '1234567890');  // '5575'

generator(10, '1234567890'); // '1926972366'

```

If length is `Nan`, `Infinity` or `-Infinity`, the default length `8` will be used:
```js
generator(NaN);  //'0vpgip!G'
```


## License

MIT

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