# gh-get-config

> This module help you to get parameters from the config json file.

Latest version **1.0.1** (published 2020-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install gh-get-config
pnpm add gh-get-config
yarn add gh-get-config
bun add gh-get-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.0.1 |
| Published | 2020-07-22 |
| First published | 2020-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Strizhkov Glab |
| Maintainers | green_house_controllers |
| Keywords | npm, config, get-config, nodejs, json |

## Links

- npm: https://www.npmjs.com/package/gh-get-config
- Repository: https://github.com/GreenHouseControllers/get-config
- Homepage: https://github.com/GreenHouseControllers/get-config#readme
- Issues: https://github.com/GreenHouseControllers/get-config/issues
- npm.io page: https://npm.io/package/gh-get-config

## Dependencies (2)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [path](https://npm.io/package/path.md) ^0.12.7

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-07-22
- 1.0.0 — 2020-07-22

## README

# gh-get-config
This module help you to get parameters from the config json file.
##### install
    npm install gh-get-config --save
    
##### Usage
    const getConfig = require('gh-get-config');
    
###### connect
    getConfig('connect', __dirname, './config.json');
here used exemple path: ./config.json, you can use else.

###### get parameters
    let port = getConfig('port');
you can not use 'connect' as parameter of function

###### exemple of config.json file
	{
		"host": "localhost",
		"port": "3000"
	}

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