Socket
Book a DemoInstallSign in
Socket

assemble-middleware-buffer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemble-middleware-buffer

Buffer files into a specified array on the Assemble context.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

assemble-middleware-buffer NPM version

Buffer files into a specified array on the Assemble context.

Install

Install with npm:

npm i assemble-middleware-buffer --save-dev

Buffer

buffer

Add files to the specified array on Assemble.

Usage

var assemble = require('assemble');
var buffer = require('assemble-middleware-buffer')(assemble);
var tap = require('gulp-tap');

assemble.src('path/to/pages/*.hbs')
  .pipe(buffer({type: 'posts'}))
  .pipe(tap(function (file) {
    console.log('posts', assemble.posts);
  });
  • options {Object}: object containing options: * {String} type name of the array to store the files in.
  • return {Stream} stream to continue piping.

Author

Brian Woodward

License

Copyright (c) 2014 Brian Woodward, contributors.
Released under the MIT license

This file was generated by verb-cli on June 30, 2014.

Keywords

docs

FAQs

Package last updated on 30 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts