index.js
function matter(file) {
  var parsed = gm(file.contents.toString());
  file.contents = new Buffer(parsed.content);
  return parsed.data;
}
function matter(file) {
  var parsed = gm(file.contents.toString());
  file.contents = new Buffer(parsed.content);
  return parsed.data;
}
function matter ( file ) { var parsed = gm ( file . contents . toString ( ) ) ; file . contents = new Buffer ( parsed . content ) ; return parsed . data ; }
Extract and parse front-matter from files using gray-matter.

@param {Object} file Vinyl File object
@return Data from front matter
Extract and parse front - matter from files using gray - matter .