# js-config-helper

> Really simple and light config helper using dot notation

Latest version **1.3.0** (published 2022-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-config-helper
pnpm add js-config-helper
yarn add js-config-helper
bun add js-config-helper
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2022-10-10 |
| First published | 2021-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daniel Sum |
| Maintainers | danielsum |
| Keywords | config, dot notation helper |

## Links

- npm: https://www.npmjs.com/package/js-config-helper
- Repository: https://github.com/uptoolkit/js-config
- Homepage: https://github.com/uptoolkit/js-config#readme
- Issues: https://github.com/uptoolkit/js-config/issues
- npm.io page: https://npm.io/package/js-config-helper

## 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.3.0 (latest) — 2022-10-10
- 1.2.0 — 2022-10-09
- 1.1.0 — 2021-10-24
- 1.0.5 — 2021-10-24
- 1.0.4 — 2021-10-18
- 1.0.3 — 2021-10-18
- 1.0.2 — 2021-10-17
- 1.0.1 — 2021-10-16

## README

# Js Config Helper

[![Latest Version on NPM](https://img.shields.io/npm/v/js-config-helper.svg?style=flat-square)](https://npmjs.com/package/js-form-helper)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)

Really simple and lightweight Config helper compatible with dotnotation inspired by Laravel.

## Install

You can install the package via yarn (or npm):

```bash
yarn add js-config-helper

// or

npm install js-config-helper
```

## Usage

```js
import {Config} from 'js-form-helper';

// Instantiate a form class with some values
const config = new Config({
    field1: 'value 1',
    field2: 'value 2',
    person: {
        first_name: 'John',
        last_name: 'Doe',
    },
});

config('field1') // return 'value1'

config.set('field2', 'bar')
config.get('field2') // return bar instead of value2

config.get('person.first_name') // return John

config.has('person.first_name') // return true

config.all() // return all options

```

## Security

If you discover any security related issues, please contact [Daniel Sum](https://github.com/danielsum) instead of using the issue tracker.

## Credits

- [Daniel Sum](https://github.com/uptoolkit)

This package is a part of the [UpToolkit](https://uptoolkit.com)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Treeware

This package is a [https://treeware.org](Treeware).

If you use it in production, then we kindly propose that you buy the world a tree to thank us for our work.

By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

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