# @types/secure-random-password

> TypeScript definitions for secure-random-password

Latest version **0.2.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/secure-random-password
pnpm add @types/secure-random-password
yarn add @types/secure-random-password
bun add @types/secure-random-password
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2023-11-07 |
| First published | 2019-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/secure-random-password
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secure-random-password
- npm.io page: https://npm.io/package/@types/secure-random-password

## Recent versions

- 0.2.3 (latest) — 2023-11-07
- 0.2.1 (ts3.6) — 2021-07-06
- 0.2.0 (ts3.0) — 2020-06-02
- 0.1.0 (ts2.0) — 2019-05-01
- 0.2.2 — 2023-10-18

## README

# Installation
> `npm install --save @types/secure-random-password`

# Summary
This package contains type definitions for secure-random-password (https://github.com/rackerlabs/secure-random-password).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secure-random-password.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secure-random-password/index.d.ts)
````ts
export const lower: string;
export const upper: string;

export const consonants: string;
export const vowels: string;
export const digits: string;

export const symbols: string;
export const copyableSymbols: string;
export const fullSymbols: string;

export interface RandomPasswordCharactersSet {
    characters: string;
    exactly?: number | undefined;
}

export interface RandomPasswordOptions {
    avoidAmbiguous?: boolean | undefined;
    characters?: string | RandomPasswordCharactersSet | Array<(RandomPasswordCharactersSet | string)> | undefined;
    length?: number | undefined;
    predicate?: ((result: string) => boolean) | undefined;
}

export function randomPassword(options?: RandomPasswordOptions): string;
export function randomString(options?: RandomPasswordOptions): string;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Bjørnar Snoksrud](https://github.com/bjornars), and [GaspardFRDev](https://github.com/GaspardFRDev).

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