# curli-config

> A small library to load/validate configuration files placed in different sides of the application using environments

Latest version **0.0.2** (published 2020-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install curli-config
pnpm add curli-config
yarn add curli-config
bun add curli-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.2 |
| Published | 2020-04-09 |
| First published | 2020-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 1 |
| Unpacked size | 31.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Carlos Juan Craviotto |
| Maintainers | curlirojo |
| Keywords | conf, config, configuration, node config, config node, envenvironment, typescript, javascript |

## Links

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

## Dependencies (1)

- [ajv](https://npm.io/package/ajv.md) ^6.12.0

## 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

- 0.0.2 (latest) — 2020-04-09
- 1.0.0-beta.2 (beta) — 2020-04-22
- 1.0.0-beta.1 — 2020-04-22
- 0.0.1 — 2020-04-09

## README

# curli-config

[![Build Status](https://travis-ci.org/CarlosCraviotto/curli-config.svg?branch=master)](https://travis-ci.com/github/CarlosCraviotto/curli-config)
[![Coverage Status](https://coveralls.io/repos/github/CarlosCraviotto/curli-config/badge.svg?branch=master&cach=ff)](https://coveralls.io/github/CarlosCraviotto/curli-config?branch=master)


A small library to load / validate configuration files placed in different sides of the application using environments



## Installation

Install by `npm`

```sh
npm install --save curli-config
```
#### Basic Usage


```typescript
import {Config} from "curli-config";

const config = new Config({
            environment: 'local',
            forceValidateSchemas: false,
            filesPaths: {path: __dirname + '/config'}
        });
//get the value from here
const defaultLanguage = config.get("defaultLanguage")

```

### Commands

 - `npm run build`: Build the project (config).
 - `npm run build:clean`: Delete first the dist folder and build it.
 - `npm run clean`: Delete the dist folder.
 - `npm run test`: Execute the tests.
 - `npm run test:coverage`:  Execute the tests and calculate the coverage.
 - `npm run lint`: Check the code using the rules in .eslintre.js
 - `npm run lint:fix`: Check the code and try to fix it.

### License
MIT

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