# raclette

> Handle your rc files with ease

Latest version **1.0.3** (published 2017-02-25) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2017-02-25 |
| First published | 2017-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nicolas Jakob |
| Maintainers | njakob |
| Keywords | rc, file, resolution, helper |

## Links

- npm: https://www.npmjs.com/package/raclette
- Repository: https://github.com/njakob/raclette
- Issues: https://github.com/njakob/raclette/issues
- npm.io page: https://npm.io/package/raclette

## Dependencies (1)

- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.22.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-02-25
- 1.0.2 — 2017-02-05
- 1.0.1 — 2017-01-28
- 1.0.0 — 2017-01-26
- 0.0.0 — 2017-01-22

## README

# raclette [![Build Status][build-status-image]][travis] [![ESLint Config][eslint-config-image]][eslint-config]

> Handle your rc files with ease.

Raclette is a resolver for JSON or javascript rc files of your Node.js libraries or
applications.

## Features

* JSON, javascript loaders
* Flowtype definitions

## Installation

With NPM:

```
$ npm install raclette
```

With Yarn:

```
$ yarn add raclette
```

## Usage

Raclette rc files resolution uses *strategies* and *loaders* which you need to
provide as options.

```js
import * as rc from 'raclette';
import type { ResolveResult } from 'raclette';

rc.resolve({
  name: '.eslintrc',
  strategies: [
    rc.strategies.cwd,
    rc.strategies.home,
  ],
  loaders: [
    rc.loaders.json,
  ],
}).then((result: ResolveResult) => {
  console.log(result);
}).catch((err) => {
  console.error(err);
});
```

### Strategy

A _strategy_ generate a set of paths where the resolver need to look for rc
files.

* `rc.strategies.cwd`: Current working directory
* `rc.strageties.home`: Current user home directry

### Loader

A _loader_ try to load and parse rc files in a given location in the file
system.

* `rc.loaders.json`: Load rc files in JSON format
* `rc.loaders.javascript`: Load rc files in javascript format

## Licences

`njakob/raclette` is licensed under the [MIT License][licence].

[licence]: LICENSE
[eslint-config]: https://github.com/njakob/raclette
[npm]: https://nodei.co/npm/raclette
[travis]: https://travis-ci.org/njakob/raclette
[npm-status-image]: https://img.shields.io/npm/v/raclette.svg
[build-status-image]: https://travis-ci.org/njakob/raclette.svg?branch=master
[eslint-config-image]: https://img.shields.io/badge/eslint_config-njakob-463fd4.svg

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