# auto-config

> Automatic config loader

Latest version **0.1.0** (published 2015-07-07) · LGLP3 license · 0 weekly downloads

## Install

```sh
npm install auto-config
pnpm add auto-config
yarn add auto-config
bun add auto-config
```

## 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 | 2015-07-07 |
| First published | 2015-04-12 |
| Weekly downloads | 0 |
| License | LGLP3 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sam Mills |
| Maintainers | henchman |

## Links

- npm: https://www.npmjs.com/package/auto-config
- Repository: https://hunchmun@github.com/Hunchmun/auto-config
- Homepage: https://github.com/Hunchmun/auto-config
- Issues: https://github.com/Hunchmun/auto-config/issues
- npm.io page: https://npm.io/package/auto-config

## Recent versions

- 0.1.0 (latest) — 2015-07-07
- 0.0.4 — 2015-04-22
- 0.0.3 — 2015-04-13
- 0.0.2 — 2015-04-12
- 0.0.1 — 2015-04-12

## README

# auto-config
Automatic configuration library (and environment handler) for node.js

### Install

`npm i auto-config`

### Usage

```
// Require Module
var config = require('auto-config');

// Pass strings to be joined
config.init(__dirname, "/config");

// OR pass single string.
var __location = path.join(__dirname, "/config");
config.init(__location);
```

If second string is not passed, auto-config will assume that the first string is the definitive pathway

Object support will come further down the line for passing additional settings such as mysql auto login

#### Result

The modules inside the given config folder will be added to the config object with their name, (".*" extension omitted)

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