# store-settings

> A standalone class for express style application settings

Latest version **1.2.1** (published 2018-08-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install store-settings
pnpm add store-settings
yarn add store-settings
bun add store-settings
```

## 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.2.1 |
| Published | 2018-08-11 |
| First published | 2016-02-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Wes Todd |
| Maintainers | wesleytodd |
| Keywords | settings, express |

## Links

- npm: https://www.npmjs.com/package/store-settings
- Repository: https://github.com/wesleytodd/express-settings
- Homepage: https://github.com/wesleytodd/express-settings#readme
- Issues: https://github.com/wesleytodd/express-settings/issues
- npm.io page: https://npm.io/package/store-settings

## 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.2.1 (latest) — 2018-08-11
- 1.2.0 — 2017-02-21
- 1.1.0 — 2016-02-02
- 1.0.0 — 2016-02-02

## README

# Express Compatible Settings Store

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Build Status](https://travis-ci.org/wesleytodd/store-settings.svg?branch=master)](https://travis-ci.org/wesleytodd/store-settings)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](http://standardjs.com/)

A stand-alone implementation of the settings portion of express.  The class that is exported can be mixed into or extended from in your application.

## Usage

```
$ npm install --save store-settings
```

```javascript
var Settings = require('store-settings');

// Create a store
var store = new Settings();

// Set values on the store
store.set('foo', 'bar');

// Get a value
store.get('foo'); // 'bar'

// Boolean values
store.enable('yep');
store.enabled('yep'); // true
store.disabled('yep'); // false

store.disable('yep');
store.disabled('yep'); // true
store.enabled('yep'); // false

// Setter methods
var store2 = new Settings({
	setters: {
		foo: function (val) {
			this.set('foobar', 'foo' + val);
		}
	}
});
store2.set('foo', 'bar');
store.get('foobar'); // 'foobar'

// Extending from
class Foo extends Settings {
	foo () {
		return this.get('foo');
	}
}

var foo = new Foo();
foo.set('foo', 'bar');
foo.foo(); // 'bar'
```

[npm-image]: https://img.shields.io/npm/v/store-settings.svg
[npm-url]: https://npmjs.org/package/store-settings
[downloads-image]: https://img.shields.io/npm/dm/store-settings.svg
[downloads-url]: https://npmjs.org/package/store-settings

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