Socket
Book a DemoInstallSign in
Socket

moml

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moml

Minimalist Object Markup Language.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

metadata

FAQs

Package last updated on 12 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts