# confg

> confg helps config enviroment variables with javascript

Latest version **0.0.5** (published 2013-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install confg
pnpm add confg
yarn add confg
bun add confg
```

## 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.5 |
| Published | 2013-08-24 |
| First published | 2013-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jacob Lowe |
| Maintainers | jacob2dot0 |
| Keywords | config, dotenv, enviroment, variables |

## Links

- npm: https://www.npmjs.com/package/confg
- Repository: http://github.com/jacoblwe20/confg
- npm.io page: https://npm.io/package/confg

## 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

- 0.0.5 (latest) — 2013-08-24
- 0.0.3 — 2013-08-13

## README

### Confg

Configurable enviroment with a js file.

```shell
npm install confg
```

#### Use

By default _confg_ uses `config.js` in the root directory. This is eg. of config file. 

##### config.js

```javascript
var pkg = require('package.json');

module.exports = function( confg ){

	confg.configuration({
		APPSECRET: '2323O3IM4OIGM3OIM',
		VERSION: pkg.version,
		APPSTARTUP: ( +new Date() ) + ''
	});
};
```

##### start

to use it in you app 

```javascript
var confg = require( 'confg' );

confg.init( );
```

#### Config

```javascript
var confg = require( 'confg' );

confg.use( __dirname + '/development.js' );
confg.init( );
```

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