# @springworks/random-string

> Generate random strings

Latest version **3005.464.1** (published 2025-11-14) · 0 weekly downloads

## Install

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

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3005.464.1 |
| Published | 2025-11-14 |
| First published | 2019-10-04 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | springworksprime, springworksdev |

## Links

- npm: https://www.npmjs.com/package/@springworks/random-string
- Repository: https://github.com/Springworks/m2h-mono
- Homepage: https://github.com/Springworks/m2h-mono/tree/master/packages/random-string#readme
- npm.io page: https://npm.io/package/@springworks/random-string

## Recent versions

- 3005.464.1 (latest) — 2025-11-14
- 3005.418.0 — 2025-01-23
- 3005.329.0 — 2024-05-24
- 3005.229.0 — 2023-06-20
- 3005.77.0 — 2021-08-23
- 3005.76.0 — 2021-08-23
- 3005.14.3 — 2020-12-23
- 3005.0.0 — 2020-11-05
- 3004.0.0 — 2020-10-30
- 3003.0.0 — 2020-10-28
- 3002.20.2 — 2020-10-05
- 3002.20.1 — 2020-10-05
- 3002.20.0 — 2020-10-05
- 3002.19.120 — 2020-10-05
- 3002.19.119 — 2020-10-02
- … 109 more at https://npm.io/package/@springworks/random-string/versions

## README

# `@springworks/random-string`

Generate random strings

```sh
yarn add @springworks/random-string
```

## Usage

```ts
import {
  alphabet_09,
  alphabet_09_af,
  alphabet_09_az,
  alphabet_09_az_AZ,
  alphabet_az,
  getRandomString,
} from '@springworks/random-string';

getRandomString(alphabet_09, 5); // '15729'
getRandomString(alphabet_09_af, 8); // '22ebccec'
getRandomString(alphabet_09_az, 10); // '1lo44i2o5a'
getRandomString(alphabet_09_az_AZ, 10); // 'T0f6MeTVXt'
getRandomString(alphabet_az, 10); // 'jvwhqnqcne'
```

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