Skip to content

nodexo/moml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Minimalist Object Markup Language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published