0.1.1 ⢠Published 6 years ago
list-definition-markup v0.1.1
Welcome to list-definition-markup š
Simple list format parser and converter.
Install
yarn install list-definition-markupUsage
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 testAuthor
š¤ Joaquim Neto
- Twitter: @joaquimnet_
- Github: @joaquimnet
Show your support
Give a āļø if this project helped you!
This README was generated with ā¤ļø by readme-md-generator