JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1439
  • Score
    100M100P100Q119291F
  • License BSD-2-Clause

Extract front-matter header from files

Package Exports

  • gulp-front-matter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-front-matter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-front-matter

npm version Build Status Coverage Status

Information

Packagegulp-front-matter
Description Extract `YAML Front-Matter` header from files, removes it from `contents` and add a new `frontMatter` property to file object.
Node Version ≥ 4

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