list-definition-markup
v0.1.1
Published
Simple list format parser and converter.
Downloads
2
Readme
Welcome to list-definition-markup 👋
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
- Twitter: @joaquimnet_
- Github: @joaquimnet
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator