# @ztrehagem/phrase

> generate random string

Latest version **2.0.0-0** (published 2022-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ztrehagem/phrase
pnpm add @ztrehagem/phrase
yarn add @ztrehagem/phrase
bun add @ztrehagem/phrase
```

Provides the command `phrase`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0-0 |
| Published | 2022-07-20 |
| First published | 2019-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18.3.0 |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shigeki Suwa |
| Maintainers | ztrehagem |
| Keywords | randomstring, passphrase |

## Links

- npm: https://www.npmjs.com/package/@ztrehagem/phrase
- Repository: https://github.com/ztrehagem/phrase
- Homepage: https://github.com/ztrehagem/phrase#readme
- Issues: https://github.com/ztrehagem/phrase/issues
- npm.io page: https://npm.io/package/@ztrehagem/phrase

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 2.0.0-0 (latest) — 2022-07-20
- 1.0.2 — 2019-05-21
- 1.0.1 — 2019-05-20
- 1.0.0 — 2019-05-19

## README

# @ztrehagem/phrase

Generate random string

## Use as CLI

```
$ npm i -g @ztrehagem/phrase

$ phrase -Aa0
kcXMzlGVOtcrKoZT

$ phrase -Aa0 -s 48
DMfcaGY2HyUhdUxBHoxO6aZvNZ4WubaYqxntFECLtPuJ9Sdf

$ phrase -Aa0 -s 48 -c "\\^$+-*/|()[]{}.,?#:;'\""
.uhb}QY7)sG0B[Njox}\"Xq6{v?X"t6D6Q)|Z/C]WT95ozMt
```

## Use as Module

```js
const { phrase } = require('@ztrehagem/phrase')

phrase({ size: 16, upper: true, lower: true, number: true }) //=> 'cMvUEYGzKVDqDhSL'
phrase({ size: 16, chars: "ABC" }) //=> 'ABBBACBACACABACA'
```

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