Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

devicarus/aodown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to aodown 👋

Version

A way of writing an array of objects in markdown

This is a parser of the same-name format aodown

Usage

1. Add aodown to your dependencies

yarn add aodown
# OR
npm install aodown

2. Use

const aodown = require('aodown')

parsed = aodown(`
\`Parameter:\` Value
\`Parameter 2:\` Value 2
---
\`Another parameter:\`
\`\`\`text
A
Multiline
Value
\`\`\`
`)

console.log(parsed)

//  [
//    { parameter: 'Value', parameter_2: 'Value 2' },
//    { another_parameter: 'A\nMultiline\nValue' }
//  ]

Syntax

FIRST OBJECT OF THE ARRAY
(Everything not matching the syntax is considered a comment)

// Other parameters depend on Action
`First parameter:` Inline value

`Second parameter:`
```text
Multiline
value
```‎

---

SECOND OBJECT OF THE ARRAY

`A parameter:` Value

About

A way of writing an array of objects in markdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published