An open API service indexing awesome lists of open source software.

https://github.com/zweifisch/miff

minimal configuration file parser
https://github.com/zweifisch/miff

Last synced: over 1 year ago
JSON representation

minimal configuration file parser

Awesome Lists containing this project

README

          

# miff

[![NPM Version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]

minimal configuration file format

```conf
key = value

[section1]
key = another value
number = 1.2
array = [item, "more item", [even, more]]

[section2.bools]
feature = on
boolean = off
on = true
off = false
```

usage

```javascript
const miff = require('miff')
```

parsing from string

```javascript
const cfg = miff.parse(input)
```

generating string from object

```javascript
const string = miff.stringify(object)
```

[npm-image]: https://img.shields.io/npm/v/miff.svg?style=flat
[npm-url]: https://npmjs.org/package/miff
[travis-image]: https://img.shields.io/travis/zweifisch/miff.svg?style=flat
[travis-url]: https://travis-ci.org/zweifisch/miff