Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

obj-md

0.0.2 • Public • Published

obj-md

Parses js obj to markdown

Usage

var parseMd = require('obj-md')
var md = parseMdObj(mdObj)
console.log(md)

Expects:

Memo
 
Stuffs to deal with
 
## Todo
 
- Code
- Go to bed
 
## Done
 
1. Housework
1. Read

Inputs:

[
  {
    '# Memo': [
      'Stuffs to deal with',
      {
        '## Todo': [
          ['Code', 'Go to bed'] // unordered list
        ],
        '## Done': [
          [['Housework', 'Read']] // ordered list
        ]
      }
    ]
  }
]

Keywords

none

Install

npm i obj-md

DownloadsWeekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • avatar