在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):shinnn/gulp-front-matter开源软件地址(OpenSource Url):https://github.com/shinnn/gulp-front-matter开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-front-matterInformation
Installation
Usageconst gulp = require('gulp');
const frontMatter = require('gulp-front-matter');
gulp.task('blog-posts', () => {
return gulp.src('./posts/*.md')
.pipe(frontMatter({ // optional configuration
property: 'frontMatter', // property added to file object
// also works with deep property selectors
// e.g., 'data.foo.bar'
remove: true // should we remove front-matter header?
}))
.pipe(…) // you may want to take a look at gulp-marked at this point
}); LICENSE2-Clause BSD License © 2013 - 2015 Nicolas Chambrier, 2016 - 2017 Shinnosuke Watanabe |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论