0.1.1 ā€¢ Published 4 years ago

list-definition-markup v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Welcome to list-definition-markup šŸ‘‹

Version License: MIT Twitter: joaquimnet_

Simple list format parser and converter.

Install

yarn install list-definition-markup

Usage

ldm <path> [--output="file name or path"] [--verbose] [--dry]

or

const parse = require('list-definition-markup');

// parse() returns the ldm content parsed as a javascript object
const parsedObject = parse(someLdmText);

Example

ldm my-house.ldm

-> my-house.ldm

house
  living room
  kitchen
  bathroom
  room
    tv
    bed

-> my-house.json

{
  "house": {
    "living room": "living room",
    "kitchen": "kitchen",
    "bathroom": "bathroom",
    "room": {
      "tv": "tv",
      "bed": "bed"
    }
  }
}

Run tests

yarn test

Author

šŸ‘¤ Joaquim Neto

Show your support

Give a ā­ļø if this project helped you!


This README was generated with ā¤ļø by readme-md-generator

0.1.1

4 years ago

0.1.0

4 years ago