# @types/secure-random-string

> TypeScript definitions for secure-random-string

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

## Install

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

## 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.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2023-11-07 |
| First published | 2020-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.1.3 (latest) — 2023-11-07
- 1.1.1 (ts3.6) — 2021-07-06
- 1.1.0 (ts3.0) — 2020-07-24
- 1.1.2 — 2023-10-18

## README

# Installation
> `npm install --save @types/secure-random-string`

# Summary
This package contains type definitions for secure-random-string (https://github.com/S2-/securerandomstring).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secure-random-string.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secure-random-string/index.d.ts)
````ts
declare function srs(options?: srs.Options): string;
declare function srs(cb: srs.Callback): void;
declare function srs(options: srs.Options, cb: srs.Callback): void;

declare namespace srs {
    interface Options {
        length?: number | undefined;
        alphanumeric?: boolean | undefined;
    }

    type Callback = (error: Error | null, result?: string) => void;
}

export = srs;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Dominik Korsa](https://github.com/dominik-korsa).

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