# js-randstr

> Simple random string generator

Latest version **1.0.2** (published 2017-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-randstr
pnpm add js-randstr
yarn add js-randstr
bun add js-randstr
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-03-11 |
| First published | 2017-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Aswath K |
| Maintainers | aswathkk |

## Links

- npm: https://www.npmjs.com/package/js-randstr
- Repository: https://github.com/aswathkk/js-randstr
- Homepage: https://github.com/aswathkk/js-randstr#readme
- Issues: https://github.com/aswathkk/js-randstr/issues
- npm.io page: https://npm.io/package/js-randstr

## Recent versions

- 1.0.2 (latest) — 2017-03-11
- 1.0.1 — 2017-03-11
- 1.0.0 — 2017-03-11
- 0.0.1 — 2017-03-10

## README

#js-randstr
Simple library to generate random strings

##Installation
using [npm](http://github.com/isaacs/npm)
```sh
npm install js-randstr
```
using [bower](http://bower.io)
```sh
bower install js-randstr
```

##Usage
For nodejs
```js
var randstr = require('js-randstr');

// Generate random string of length 6
randstr(6);

// Generate random string with specified charset
randstr(8, 'abcd');

```

For browser
```html
<script src="bower_components/js-randstr/lib/randstr.js"></script>
<script>
// Generate random string of length 6
randstr(6);

// Generate random string with specified charset
randstr(8, 'abcd');
</script>

```

##Tests
```sh
# install dev dependencies
npm install

# run tests
npm test
```

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