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
- Host: GitHub
- URL: https://github.com/zweifisch/miff
- Owner: zweifisch
- License: mit
- Created: 2014-11-24T23:58:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-13T13:46:05.000Z (almost 9 years ago)
- Last Synced: 2025-02-28T22:39:17.802Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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