# @types/randomstring

> TypeScript definitions for randomstring

Latest version **1.3.0** (published 2024-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/randomstring
pnpm add @types/randomstring
yarn add @types/randomstring
bun add @types/randomstring
```

## 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.3.0 |
| Published | 2024-04-04 |
| First published | 2016-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51430 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.3.0 (latest) — 2024-04-04
- 1.1.12 (ts4.6) — 2024-02-27
- 1.1.11 (ts4.5) — 2023-11-07
- 1.1.8 (ts4.2) — 2021-10-29
- 1.1.7 (ts3.6) — 2021-07-07
- 1.1.6 (ts2.7) — 2017-06-16
- 1.1.10 — 2023-10-18
- 1.1.9 — 2023-09-27
- 1.1.5 — 2016-10-05
- 1.1.4 — 2016-09-19
- 1.1.3 — 2016-08-25
- 1.1.2 — 2016-08-19
- 1.1.1 — 2016-08-02

## README

# Installation
> `npm install --save @types/randomstring`

# Summary
This package contains type definitions for randomstring (https://github.com/klughammer/node-randomstring).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomstring.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomstring/index.d.ts)
````ts
declare namespace Randomstring {
    type Charset =
        | "alphanumeric"
        | "alphabetic"
        | "numeric"
        | "hex"
        | "binary"
        | "octal"
        | string & {};
    type Capitalization = "lowercase" | "uppercase";
    interface GenerateOptions {
        length?: number | undefined;
        readable?: boolean | undefined;
        charset?: Charset | Charset[] | undefined;
        capitalization?: Capitalization | undefined;
    }

    function generate(options?: GenerateOptions | number): string;
}

declare module "randomstring" {
    export = Randomstring;
}

````

### Additional Details
 * Last updated: Thu, 04 Apr 2024 18:08:09 GMT
 * Dependencies: none

# Credits
These definitions were written by [Isman Usoh](https://github.com/isman-usoh).

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