# env-builder-github

> GitHub backend for env-builder

Latest version **0.1.0** (published 2014-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install env-builder-github
pnpm add env-builder-github
yarn add env-builder-github
bun add env-builder-github
```

## 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.1.0 |
| Published | 2014-04-05 |
| First published | 2014-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Cameron Bytheway |
| Maintainers | camshaft |
| Keywords | github, env, builder |

## Links

- npm: https://www.npmjs.com/package/env-builder-github
- Repository: https://github.com/camshaft/node-env-builder-github
- Issues: https://github.com/camshaft/node-env-builder-github/issues
- npm.io page: https://npm.io/package/env-builder-github

## Dependencies (3)

- [envs](https://npm.io/package/envs.md) ^0.1.4
- [netrc](https://npm.io/package/netrc.md) ^0.1.3
- [superagent](https://npm.io/package/superagent.md) ^0.17.0

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-04-05

## README

node-env-builder-github
=======================

GitHub backend for env-builder

Usage
-----

```js
var builder = require('env-builder');
var github = require('env-builder-github');

var env = 'prod';
var types = ['ui', 'api'];
var app = 'my-app';
var path = 'my-org/my-config-repo';

var conf = github(path);

builder(env, types, app, conf, function(err, ENV) {

});
```

Authentication
--------------

To access a private repo use one of the following combinations:

### Username/password

Set the following in the environment:

```sh
GITHUB_USERNAME=camshaft
GITHUB_PASSWORD=my-pass-123
```

### Auth token

Set the following in the environment:

```sh
GITHUB_TOKEN=github-auth-token-123
```

### Options

Pass `auth` in as an option:

```js
var github = require('env-builder-github');

var conf = github(path, {
  auth: {
    username: 'camshaft',
    password: 'my-pass-123'
  }
});
```

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