@zadkiel/gulp-feed

0.0.5 • Public • Published

gulp-feed Build Status Coverage Status Dependency Status

jpmonette/feed wrapper for gulp, allowing you create any supported feed format. The files contents are streamed into a stream of Vinyl files and so generates in parallel.

Installation

npm install @zadkiel/gulp-feed --save

Usage

const gulpFeed = require("@zadkiel/gulp-feed");

gulpFeed(posts, options).pipe(...);

Example

const posts = [{
  title: 'My super title',
  content: 'My super content',
}];
const options = {
  // options from feed (see https://github.com/jpmonette/feed#example)
  // 
  transform: post => post,
  // `transform` can be used to transform the data before giving it to feed (to adapt it)
  render: {
    'mysuperrss.xml': 'rss2',
    // filename: wanted format (rss2, atom1 or json1)
  },
};

gulpFeed(posts, options)
  .pipe(gulp.dest("assets/"));

TODO

  • [ ] More tests

/@zadkiel/gulp-feed/

    Package Sidebar

    Install

    npm i @zadkiel/gulp-feed

    Weekly Downloads

    0

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    6.25 kB

    Total Files

    6

    Last publish

    Collaborators

    • zadkiel