# rethinky

> Rethinky will help you to start, stop rethinkdb server

Latest version **1.0.3** (published 2016-06-28) · ISC license · 0 weekly downloads

## Install

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

## 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-06-28 |
| First published | 2016-06-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | garciacom |
| Keywords | rethinkdb,database,exe,cmd,db |

## Links

- npm: https://www.npmjs.com/package/rethinky
- npm.io page: https://npm.io/package/rethinky

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2016-06-28
- 1.0.2 — 2016-06-28
- 1.0.1 — 2016-06-27
- 1.0.0 — 2016-06-27

## README

# rethinky
You have error from rethinkdb that look like this [ Uncaught ReqlDriverError: Could not connect ] how to fix this error? easy yo need to start the server first in your app, rethinky will help you to start it. 

Rethinky work for window only :(

# Functions
* server.start(directory,callback);
* server.stop();
* server.isRunning(callback(boolean));

# Example
```js
var server = require('rethinky').server();
/*
* define where you put the rethinkdb.exe folder
*/
var directory = "C:/rethinkdb/";

server.start(directory,function(err){
    if(err !== null){
        console.log(err);
    }else{
        /* start your app here */
        app.init(); // it's just a example
    }
});
/* check if rethinkdb.exe is running */
setInterval(function(){
    server.isRunning(function(err, running){
        if(!err) console.log(running);
    });
},3000);

```

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