Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliendargelos/multimarkdown-6-js
JavaScript wrapper for multimarkdown executable
https://github.com/juliendargelos/multimarkdown-6-js
Last synced: 18 days ago
JSON representation
JavaScript wrapper for multimarkdown executable
- Host: GitHub
- URL: https://github.com/juliendargelos/multimarkdown-6-js
- Owner: juliendargelos
- Created: 2020-01-28T23:08:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-28T23:08:15.000Z (almost 5 years ago)
- Last Synced: 2024-12-11T12:44:55.705Z (about 2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# MultiMarkdown 6 JS
JavaScript wrapper for multimarkdown executable, requires make and cmake for building.
### Install
```bash
yarn add multimarkdown-6
```### Usage
###### From cli
```bash
multimarkdown [-bfscarm] [--help] [--version] [--random] [--unique] [--nosmart]
[--nolabels] [--notransclude] [--opml] [--itmz] [-t FORMAT]
[-o FILE] [-l LANG] [-e KEY] []...
```See [Documentation](https://fletcher.github.io/MultiMarkdown-6/MMD_Users_Guide.html#usage)
###### From node
```javascript
import multimarkdown from 'multimarkdown-6';(async () => {
console.log(await multimarkdown({ source: '# Lorem' }))
console.log(await multimarkdown({ path: 'readme.md' }))
console.log(await multimarkdown({ path: ['a.md', 'b.md'] }))
})()console.log(multimarkdown.sync({ source: '# Lorem' }))
console.log(multimarkdown.sync({ path: 'readme.md' }))
console.log(multimarkdown.sync({ path: ['a.md', 'b.md'] }))
```In additions to the `source` and `path` parameters which are used as input, all multimarkdown cli options are available with the same name.