# parse-rethinkdb-url

> Parse RethinkDB URL string into an object ready for consumption by RethinkDB JavaScript API

Latest version **0.0.1** (published 2015-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-rethinkdb-url
pnpm add parse-rethinkdb-url
yarn add parse-rethinkdb-url
bun add parse-rethinkdb-url
```

## 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.1 |
| Published | 2015-03-26 |
| First published | 2015-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | George Miroshnykov |
| Maintainers | laggyluke |

## Links

- npm: https://www.npmjs.com/package/parse-rethinkdb-url
- Repository: https://github.com/laggyluke/node-parse-rethinkdb-url
- Issues: https://github.com/laggyluke/node-parse-rethinkdb-url/issues
- npm.io page: https://npm.io/package/parse-rethinkdb-url

## Recent versions

- 0.0.1 (latest) — 2015-03-26

## README

parse-rethinkdb-url
===================

Parse RethinkDB URL string into an object ready for consumption by RethinkDB JavaScript API.

[![Build Status](https://travis-ci.org/laggyluke/node-parse-rethinkdb-url.svg?branch=master)](https://travis-ci.org/laggyluke/node-parse-rethinkdb-url)

Installation
------------

```
npm install --save parse-rethinkdb-url
```


Usage
-----

```javascript
var r = require('rethinkdb');
var parseRethinkdbUrl = require('parse-rethinkdb-url');

var options = parseRethinkdbUrl('rethinkdb://AzureDiamond:hunter2@localhost:28015/marvel');
// { host: 'localhost',
//   port: 28015,
//   db: 'marvel',
//   authKey: 'hunter2' }

r.connect(options, function(err, conn) { ... });
```

Please note that when using authentication both username and password must be provided.
Username is ignored while password is used as authKey.

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