# blox-random

> Generates a random string or number of a specified length

Latest version **1.0.0** (published 2018-06-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install blox-random
pnpm add blox-random
yarn add blox-random
bun add blox-random
```

## 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.0 |
| Published | 2018-06-25 |
| First published | 2018-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | @bkawk |
| Maintainers | eosblox |

## Links

- npm: https://www.npmjs.com/package/blox-random
- Repository: https://github.com/eosblox/blox-random
- Homepage: https://github.com/eosblox/blox-random#readme
- Issues: https://github.com/eosblox/blox-random/issues
- npm.io page: https://npm.io/package/blox-random

## Dependencies (1)

- [@polymer/polymer](https://npm.io/package/@polymer/polymer.md) ^3.0.0

## Recent versions

- 1.0.0 (latest) — 2018-06-25

## README

# \<blox-random\>

Generates a random string or number of a specified length

## Install the Polymer-CLI

First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) and npm (packaged with [Node.js](https://nodejs.org)) installed. Run `npm install` to install your element's dependencies, then run `polymer serve` to serve your element locally.

## Install blox-randomt

```
$ npm install blox-random
```

## Viewing Your Element

```
$ polymer serve
```

## Running Tests

```
$ polymer test
```

## Import

```
$ import 'blox-random';
```

## Basic Use

```html
<blox-random
    length="20"
    type="number"
    result="{{error}}">
</blox-random>
```

## Javascript Generate Number

```html
<blox-random id="bloxRandom"></blox-random>
<script>
    this.$.bloxRandom.generateNumber(10)
    .then((num) => {
        // Do Something
    })
    .catch((err) => {
        // Do Something
    })
</script>
```

## Javascript Generate String

```html
<blox-random id="bloxRandom"></blox-random>
<script>
    this.$.bloxRandom.generateString(10)
    .then((str) => {
        // Do Something
    })
    .catch((err) => {
        // Do Something
    })
</script>
```

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