# refresh-config

> refresh config when config file change

Latest version **0.0.4** (published 2014-06-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install refresh-config
pnpm add refresh-config
yarn add refresh-config
bun add refresh-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.0.4 |
| Published | 2014-06-12 |
| First published | 2014-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | dead_horse |
| Maintainers | dead_horse |
| Keywords | cluster, restart |

## Links

- npm: https://www.npmjs.com/package/refresh-config
- Repository: https://github.com/node-modules/refresh-config
- Issues: https://github.com/node-modules/refresh-config/issues
- npm.io page: https://npm.io/package/refresh-config

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) ~1.0.2

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.0.4 (latest) — 2014-06-12
- 0.0.3 — 2014-06-11
- 0.0.2 — 2014-06-11
- 0.0.1 — 2014-06-11

## README

refresh-config
------------

[![NPM version](https://badge.fury.io/js/refresh-config.svg)](http://badge.fury.io/js/refresh-config)
[![Build Status](https://travis-ci.org/node-modules/refresh-config.svg?branch=master)](https://travis-ci.org/node-modules/refresh-config)

refresh config when config file modified.

## Install

```
npm install refresh-config
```

## Usage

```js
var Config = require('refresh-config');

var config = Config('./config.json');

config.on('error', function (err) {
  console.error(err.stack);
})
config.on('change', function () {
  console.log(config.data); // the new data object
  console.log(config.stale); // the stale object
  console.log(config.removed);  // removed keys
});

```

## License

MIT

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