# confload

> config loader for nodejs

Latest version **1.0.1** (published 2016-03-22) · 0 weekly downloads

## Install

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

## 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 | 2016-03-22 |
| First published | 2016-03-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kiavash Page |
| Maintainers | kiavashp |
| Keywords | config, conf, load, loader |

## Links

- npm: https://www.npmjs.com/package/confload
- Repository: https://github.com/kiavashp/confload
- Homepage: https://github.com/kiavashp/confload#readme
- Issues: https://github.com/kiavashp/confload/issues
- npm.io page: https://npm.io/package/confload

## 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.0.1 (latest) — 2016-03-22
- 1.0.0 — 2016-03-22

## README

config
===
A simple configuration loader for Node.js

[![Build Status](https://travis-ci.org/kiavashp/confload.svg?branch=master)](https://travis-ci.org/kiavashp/confload)

## Installation
```
npm install confload
```

## Usage

#### config.json
```json
{
    "some-module": {
        "example": true
    }
}
```

#### index.js
```javascript
'use strict';
const config = require('confload').loadFromFile(__dirname + '/config.json');
const someModule = require(__dirname + '/lib/some-module');
```

#### lib/some-module.js
```javascript
'use strict';
const config = require('confload');

config.get() // {"some-module": {"example": true}}
config.get('some-module') // {"example": true}
config.get('some-module', 'example') // true
```

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