# readsettings

> Easily manage a configuration file for your application.

Latest version **1.0.1** (published 2019-11-09) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2019-11-09 |
| First published | 2019-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.3 |
| Dependencies | 6 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Richie Bendall |
| Maintainers | richienb |
| Keywords | conf, readsettings, storage |

## Links

- npm: https://www.npmjs.com/package/readsettings
- Repository: https://github.com/readsettings/node-readsettings
- npm.io page: https://npm.io/package/readsettings

## Dependencies (6)

- [conf](https://npm.io/package/conf.md) ^6.1.0
- [json5](https://npm.io/package/json5.md) ^2.1.0
- [xml-js](https://npm.io/package/xml-js.md) ^1.6.11
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.13.1
- [on-change](https://npm.io/package/on-change.md) ^1.6.2
- [@iarna/toml](https://npm.io/package/@iarna/toml.md) ^2.2.3

## 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) — 2019-11-09
- 1.0.0 — 2019-10-24
- 0.0.0 — 2019-10-20

## README

# ReadSettings [![Travis CI Build Status](https://img.shields.io/travis/com/Richienb/readsettings/master.svg?style=for-the-badge)](https://travis-ci.com/Richienb/readsettings)

Easily manage a configuration file for your application.

[![NPM Badge](https://nodei.co/npm/readsettings.png)](https://npmjs.com/package/readsettings)

## Install

```sh
npm install readsettings
```

## Usage

```js
const ReadSettings = require("readsettings");

const config = new ReadSettings("myConfig.json");

config.data;
//=> {}

config.data.someKey = "Hello World!";

config.data;
//=> {somekey: "Hello World!"}
```

## API

### `class` ReadSettings(dir, options?)

#### dir

Type: `string`

The directory to store the settings file.

#### options

Type: `Conf.Options<any>`

Custom options to pass to [conf](https://github.com/sindresorhus/conf).

### `instance` ReadSettings extends [Conf](https://github.com/sindresorhus/conf)

#### data

Type: `object`

The currently stored data.

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