1.0.2 • Published 7 years ago

moml v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

MOML

Minimalist Object Markup Language.

Build Status Test Coverage Code Climate

Dependency Status devDependencies Status

Standard - JavaScript Style Guide

Installation

$ npm install moml

Please also read the short MOML Spec!

Usage

const moml = require('moml')

let data = `
Title:      My First Day with MOML
Author:     Sam Text
Date:       12/06/2016

Tags[]:     explosive, story

Remarks:    This is a multiline remark.
            Use the same indentation _
            on subsequent lines. 
`

let result = moml.parse(data)
console.log(JSON.stringify(result, null, 4))

/* 
{
    "title": "My First Day with MOML",
    "author": "Sam Text",
    "date": "12/06/2016",
    "tags": [
        "explosive", 
        "story"
    ],
    "remarks": "This is a multiline remark.\nUse the same indentation on subsequent lines."
}
*/

License

ISC

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago