1.3.0 • Published 6 years ago

gulp-front-matter v1.3.0

Weekly downloads
1,028
License
BSD-2-Clause
Repository
github
Last release
6 years ago

gulp-front-matter

npm version Build Status Coverage Status

Information

Installation

Use npm.

npm install gulp-front-matter

Usage

const 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
});

LICENSE

2-Clause BSD License © 2013 - 2015 Nicolas Chambrier, 2016 - 2017 Shinnosuke Watanabe