Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kflorence/gulp-data-matter
Extracts front-matter from files and stores it in `file.data`
https://github.com/kflorence/gulp-data-matter
Last synced: 3 days ago
JSON representation
Extracts front-matter from files and stores it in `file.data`
- Host: GitHub
- URL: https://github.com/kflorence/gulp-data-matter
- Owner: kflorence
- License: mit
- Created: 2014-12-07T08:20:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-09T22:05:03.000Z (about 10 years ago)
- Last Synced: 2024-12-01T04:41:33.447Z (22 days ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-data-matter
Extracts front-matter from files using [gray-matter](https://github.com/jonschlinkert/gray-matter)
and stores it in `file.data` via [gulp-data](https://github.com/colynb/gulp-data).## Install
`npm install gulp-data-matter --save-dev`
## Example
```javascript
var gulp = require("gulp");
var hb = require("gulp-hb");
var dataMatter = require("gulp-data-matter");gulp.task("handlebars", function() {
return gulp.src("src/**/*.hbs")
.pipe(dataMatter())
.pipe(hb())
.pipe(gulp.dest("dest"));
});
```## License
MIT