pon-task-md
v1.1.1
Published
Pon task to convert markdowns
Downloads
13
Readme
pon-task-md
Pon task to convert markdowns
Installation
$ npm install pon-task-md --save
Usage
'use strict'
const pon = require('pon')
const ponTaskMd = require('pon-task-md')
;(async () => {
let run = pon({
'md:html': ponTaskMd(
'assets/markdowns',
'assets/html',
{
pattern: '**/*.md',
format: 'html'
}
)
})
run('md:html')
}).catch((err) => console.error(err))
Signatures
define(srcDir, destDir, options) -> function
Define task
| Param | type | Description | | ---- | --- | ----------- | | srcDir | string | Source directory name | | destDir | string | Destination directory name | | options | Object | Optional settings | | options.pattern | string|string[] | File name pattern |
License
This software is released under the Apache-2.0 License.