# @rnd7/rum-random-string

> Generates random strings.

Latest version **1.0.2** (published 2018-10-25) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-10-25 |
| First published | 2018-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | rnd7 |
| Maintainers | rnd7 |

## Links

- npm: https://www.npmjs.com/package/@rnd7/rum-random-string
- Repository: https://github.com/rnd7/rum-random-string
- Homepage: https://github.com/rnd7/rum-random-string#readme
- Issues: https://github.com/rnd7/rum-random-string/issues
- npm.io page: https://npm.io/package/@rnd7/rum-random-string

## Recent versions

- 1.0.2 (latest) — 2018-10-25

## README

# rum-random-string
Rumbullion random string generator

See also:

[rum](https://github.com/rnd7/rum)

## Download
[builds](https://github.com/rnd7/rum-random-string/tree/master/dist)

## Installation

```bash
npm i @rnd7/rum-random-string

```
## Include

Via script tag
```
<script src="node_modules/@rnd7/rum-random-string/dist/rum-random-string-browser.js"></script>
```

Using require
```javascript
const randomString = require('@rnd7/rum-random-string').randomString
```

Using import
```javascript
import { randomString } from '@rnd7/rum-random-string'
```

## Usage
```javascript
console.log(randomString())
console.log(randomString(8))
console.log(randomString(8, "0123456789"))
```
## API

### Defaults
```javascript
export const RANDOM_STRING_DEFAULTS = {
  length: 16,
  charset: "abcdefghijklmnopqrstuvwxyz1234567890"
}
```

### randomString
```javascript
randomString(length, charset)
```
## Development

### Installation
Install dependencies such as rum-maker and rum-publisher
```bash
npm install
```

### Build
Production build
```bash
npm run build
```

### Publish
Publish to github and npm using
```bash
npx publish-rum -m "My commit message"
```

## License
See the [LICENSE](https://github.com/rnd7/rum-temporary-storage/tree/master/LICENSE.md) file for software license rights and limitations (MIT).

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