0.1.1 • Published 6 years agoCLI
list-definition-markup
Licence
MIT
Version
0.1.1
Deps
2
Size
15 kB
Vulns
0
Weekly
0
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