# random-org-http

> Random.org via HTTP Interface

Latest version **0.0.8** (published 2020-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install random-org-http
pnpm add random-org-http
yarn add random-org-http
bun add random-org-http
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2020-01-12 |
| First published | 2018-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8.9.0 |
| Dependencies | 4 |
| Unpacked size | 15.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hoàng Văn Khải |
| Maintainers | khai96_ |
| Keywords | random, http, random.org |

## Links

- npm: https://www.npmjs.com/package/random-org-http
- Homepage: https://github.com/ksxnodemodules/nodemonorepo#readme
- Issues: https://github.com/ksxnodemodules/nodemonorepo/issues
- npm.io page: https://npm.io/package/random-org-http

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) ^1.10.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0
- [@types/node](https://npm.io/package/@types/node.md) ^13.1.6
- [@types/node-fetch](https://npm.io/package/@types/node-fetch.md) ^2.5.4

## Recent versions

- 0.0.8 (latest) — 2020-01-12
- 0.0.7 — 2019-10-05
- 0.0.6 — 2018-08-30
- 0.0.5 — 2018-07-28
- 0.0.4 — 2018-07-28
- 0.0.3 — 2018-07-27
- 0.0.2 — 2018-07-27
- 0.0.1 — 2018-07-27
- 0.0.0 — 2018-07-27

## README

# random-org-http

[Random.org](https://random.org) via [HTTP Interface](https://www.random.org/clients/http/)

## Requirements

* Node ≥ 8.9.0

## Usage

### Random Integers

```javascript
import {integers} from 'random-org-http'

const result = await integers({
  min: -128,
  max: 127,
  num: 9
})

console.log(result)
```

This will print an array of 9 random integers within range [1, 32].

### Random Ordered Sequence

```javascript
import {sequences} from 'random-org-http'

const result = await sequences({
  min: -20,
  max: 100
})

console.log(result)
```

This will print an array of all integers within range [10, 100] in random order.

### Random Strings

```javascript
import {strings} from 'random-org-http'

const result = await strings({
  num: 7,
  len: 12,
  unique: false,
  digits: false,
  upperalpha: true,
  loweralpha: false
})

console.log(result)
```

This will print an array of 7 random strings consist of 12 uppercase characters.

## License

[MIT](https://git.io/vhaEz) © [Hoàng Văn Khải](https://github.com/KSXGitHub)

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