# appcore-config

> Sets configuration on apps from the env and cli arguments.

Latest version **1.1.0** (published 2015-11-08) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2015-11-08 |
| First published | 2015-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| Author | Beneath the Ink |
| Maintainers | mrgalaxy |
| Keywords | appcore, config |

## Links

- npm: https://www.npmjs.com/package/appcore-config
- Repository: https://beneaththeink.git.beanstalkapp.com/appcore-config
- npm.io page: https://npm.io/package/appcore-config

## Dependencies (4)

- [hjson](https://npm.io/package/hjson.md) ~1.7.4
- [js-yaml](https://npm.io/package/js-yaml.md) ~3.4.3
- [minimist](https://npm.io/package/minimist.md) ~1.2.0
- [extend-object](https://npm.io/package/extend-object.md) ~1.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-11-08

## README

# Appcore Config

Pulls configuration into an [Appcore](http://ghub.io/appcore) instance from the environment, the CLI and the file system.

```js
process.env.CAKE = "yum!";

var app = Appcore();

app.use(require("@beneaththeink/appcore-config")({
	env: { CAKE: "foods.cake" }
}));

app.use(function() {
	console.log(this.get("foods.cake"));
});
```

Available options:

- __`files`__ - List of files to import as configuration. Currently accepted file types are [HJSON](http://hjson.org/), JavaScript and YAML.
- __`filesKey`__ - A key in the Appcore instance's options that will be merged with the files list. Useful if wanting to allow the end user to specify a config file.
- __`cli`__ - [Minimist](http://ghub.io/minimist) options for parsing the CLI. Set to `false` to disable CLI parsing.
- __`env`__ - An object of `process.env` properties mapped to Appcore option keys.

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