# homedir-config

> Persistent configuration in a homedir config file.

Latest version **0.1.1** (published 2014-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install homedir-config
pnpm add homedir-config
yarn add homedir-config
bun add homedir-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.1 |
| Published | 2014-08-17 |
| First published | 2014-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jasper Woudenberg |
| Maintainers | jasperwoudenberg |

## Links

- npm: https://www.npmjs.com/package/homedir-config
- Repository: https://github.com/jwoudenberg/homedir-config
- Issues: https://api.github.com/repos/jwoudenberg/homedir-config/issues
- npm.io page: https://npm.io/package/homedir-config

## Recent versions

- 0.1.1 (latest) — 2014-08-17
- 0.1.0 — 2014-08-17

## README

# homedir-config
[![wercker status](https://app.wercker.com/status/c0dd1f9acce3460128f4ebc66e9bdec5/s/master "wercker status")](https://app.wercker.com/project/bykey/c0dd1f9acce3460128f4ebc66e9bdec5)
[![NPM
version](https://badge.fury.io/js/homedir-config.svg)](http://badge.fury.io/js/homedir-config)

Persistent configuration in a homedir config file.

Install it from npm.

    npm install homedir-config

## Usage

The code below will create a new HomedirConfig instance, that saves and loads
its configuration from `~/my-config.json`:

```node
var HomedirConfig = require('homedir-config');
var config = new HomedirConfig('my-config');
```

Now you can get and set keys from the configuration file:

```node
config.set('foo', 'bar');
var result = config.get('foo');
console.log(result);  //-> 'bar'
```

That's it!

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