# random-unicodes

> Return a random unicode.

Latest version **1.0.3** (published 2016-04-25) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2016-04-25 |
| First published | 2016-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | bubkoo |
| Maintainers | bubkoo |
| Keywords | unicode, random, randomly, randomize, chance, test, dice, mock |

## Links

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

## Dependencies (6)

- [clamp](https://npm.io/package/clamp.md) ^1.0.1
- [to-str](https://npm.io/package/to-str.md) ^1.0.0
- [to-upper](https://npm.io/package/to-upper.md) ^1.0.1
- [pad-start](https://npm.io/package/pad-start.md) ^1.0.2
- [to-length](https://npm.io/package/to-length.md) ^1.0.1
- [random-natural](https://npm.io/package/random-natural.md) ^1.0.3

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2016-04-25
- 1.0.2 — 2016-04-24
- 1.0.1 — 2016-04-19
- 1.0.0 — 2016-04-19

## README

# random-unicodes

> Return a random unicode.

[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-unicodes/blob/master/LICENSE)

[![build:?](https://img.shields.io/travis/mock-end/random-unicodes/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-unicodes)
[![coverage:?](https://img.shields.io/coveralls/mock-end/random-unicodes/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-unicodes)


## Install

```
$ npm install --save random-unicodes
```

## Usage

> For more use-cases see the [tests](https://github.com/mock-end/random-unicodes/blob/master/test/spec/index.js)

```js
var randomUnicode = require('random-unicodes');

// API
// - randomUnicode([options]);

// options
// - min
// - max
```

By default it will return an unicode between `0` and `1114109`, [unicode ranges](http://billposer.org/Linguistics/Computation/UnicodeRanges.html):

```js
randomUnicode();
// => '\uaf91'
```

Can optionally provide `min` and `max`:

```js
randomUnicode({ max: '\\uFFFF' });
// => '\u00F4'

randomUnicode({ min: 0, max: 1114109 });
// => '\u2F7FF'
```

**Note**: these `min` and `max` are **inclusive**, so they are included in the range.


## Related

- [random-integral](https://github.com/mock-end/random-integral) - Return a random integer.
- [random-natural](https://github.com/mock-end/random-natural) - Return a random natural number.
- [random-decimal](https://github.com/mock-end/random-decimal) - Return a random decimal.
- [random-floating](https://github.com/mock-end/random-floating) - Return a random floating point number.
- [random-index](https://github.com/mock-end/random-index) - Return a random array-like index.
- [random-binary](https://github.com/mock-end/random-binary) - Return a random binary number.
- [random-octal](https://github.com/mock-end/random-octal) - Return a random octal number.
- [random-hexadecimal](https://github.com/mock-end/random-hexadecimal) - Return a random hexadecimal number.
- [random-bool](https://github.com/mock-end/random-bool) - Return a random boolean (true/false).
- [random-char](https://github.com/mock-end/random-char) - Return a random char.

## Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please [create an issue](https://github.com/mock-end/random-unicodes/issues/new).

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