# docker-host

> Tiny module that converts a host to docker (usually $DOCKER_HOST) to a standard http url

Latest version **3.1.0** (published 2015-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install docker-host
pnpm add docker-host
yarn add docker-host
bun add docker-host
```

## 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 | 3.1.0 |
| Published | 2015-10-16 |
| First published | 2014-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mathias Buus |
| Maintainers | mafintosh |
| Keywords | docker, host, parse, DOCKER_HOST |

## Links

- npm: https://www.npmjs.com/package/docker-host
- Repository: https://github.com/mafintosh/docker-host
- Issues: https://github.com/mafintosh/docker-host/issues
- npm.io page: https://npm.io/package/docker-host

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 3.1.0 (latest) — 2015-10-16
- 3.0.0 — 2014-07-08
- 2.3.1 — 2014-07-08
- 2.3.0 — 2014-07-08
- 2.2.0 — 2014-07-06
- 2.1.0 — 2014-07-06
- 2.0.0 — 2014-06-13
- 1.0.0 — 2014-06-10

## README

# docker-host

Tiny module that parses docker remote host (usually `$DOCKER_HOST`)

```
npm install docker-host
```

[![build status](http://img.shields.io/travis/mafintosh/docker-host.svg?style=flat)](http://travis-ci.org/mafintosh/docker-host)

## Usage

``` js
var host = require('docker-host')

var h = host()
console.log(h) // will print something like {socketPath:'/var/run/docker.sock'}
               // if $DOCKER_HOST is set that will be used as foundation as well

var h = host('tcp://:2375')
console.log(h) // will print {host:'localhost', port:2375}
```

## License

MIT

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