# randomapi

> Offline RandomAPI

Latest version **0.1.1** (published 2018-04-22) · 0 weekly downloads

## Install

```sh
npm install randomapi
pnpm add randomapi
yarn add randomapi
bun add randomapi
```

Provides the command `randomapi`.

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-04-22 |
| First published | 2016-09-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 25 |
| Unpacked size | 58 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 12 |
| Author | Keith Armstrong |
| Maintainers | keitharm |
| Keywords | random, randomapi, data, generator, randomapi.com |

## Links

- npm: https://www.npmjs.com/package/randomapi
- Repository: https://github.com/RandomAPI/Offline-RandomAPI
- Homepage: https://github.com/RandomAPI/Offline-RandomAPI#readme
- Issues: https://github.com/RandomAPI/Offline-RandomAPI/issues
- npm.io page: https://npm.io/package/randomapi

## Dependencies (25)

- [cors](https://npm.io/package/cors.md) ^2.8.0
- [nedb](https://npm.io/package/nedb.md) ^1.8.0
- [async](https://npm.io/package/async.md) ^2.0.1
- [deity](https://npm.io/package/deity.md) ^0.2.0
- [faker](https://npm.io/package/faker.md) ^3.1.0
- [colors](https://npm.io/package/colors.md) ^1.1.2
- [daemon](https://npm.io/package/daemon.md) github:randomapi/daemon.node#48d0977c26fb3a6a44ae99aae3471b9d5a761085
- [lodash](https://npm.io/package/lodash.md) ^4.15.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [moment](https://npm.io/package/moment.md) ^2.14.1
- [prompt](https://npm.io/package/prompt.md) ^1.0.0
- [rimraf](https://npm.io/package/rimraf.md) ^2.5.4
- [yamljs](https://npm.io/package/yamljs.md) ^0.2.8
- [deasync](https://npm.io/package/deasync.md) ^0.1.7
- [esprima](https://npm.io/package/esprima.md) ^4.0.0
- [express](https://npm.io/package/express.md) ^4.14.0
- [numeral](https://npm.io/package/numeral.md) ^1.5.3
- [request](https://npm.io/package/request.md) ^2.74.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.6
- [fs.extra](https://npm.io/package/fs.extra.md) ^1.3.2
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.1
- [json-2-csv](https://npm.io/package/json-2-csv.md) ^2.0.22
- [compression](https://npm.io/package/compression.md) ^1.6.2
- [js2xmlparser](https://npm.io/package/js2xmlparser.md) ^1.0.0
- [mersenne-twister](https://npm.io/package/mersenne-twister.md) ^1.1.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2018-04-22
- 0.1.0 — 2017-09-27
- 0.0.8 — 2017-06-27
- 0.0.7 — 2016-10-25
- 0.0.6 — 2016-10-07
- 0.0.5 — 2016-09-29
- 0.0.4 — 2016-09-15
- 0.0.3 — 2016-09-14
- 0.0.2 — 2016-09-13
- 0.0.1 — 2016-09-10

## README

# RandomAPI (OfflineAPI)

*This cli-tool requires a premium plan on RandomAPI*

*Please visit https://randomapi.com to register*

##### Detailed tutorial: http://blog.randomapi.com/offline-randomapi/
### How to use:
   1. Create a new authToken at https://randomapi.com/settings/offline#new
   2. Login with your username and authToken to link this machine to your account.
   3. Run the `sync` operation to synchronize your APIs, lists, and snippets with the RandomAPI server.
   4. Run the `ls` command to view locally available APIs
   5. Generate results using the `gen` command or visit http://localhost:61337 to generate results via browser
      - options must be provided as a comma delimited list in CLI (e.g. results=25,fmt=csv,seed=a)

Usage: `randomapi [command]`

```
Commands:
   config [property] [new value]     View saved settings
   gen [list # OR ref #] [options]   Generate result for given API
   list                              Alias for ls
   ls                                View available local APIs
   login                             Login and link your machine with your RandomAPI account using an authToken
   logout                            Logout off your RandomAPI account
   restart                           Restart OfflineAPI Server
   run [list # OR ref #] [options]   Alias for gen
   start                             Start OfflineAPI Server
   status                            View status of OfflineAPI Server
   stop                              Stop OfflineAPI Server
   sync                              Synchronize your local APIs with the RandomAPI server
   verify                            Verify your login authToken is valid
```

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