Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

stream-loader

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-loader

create a read stream from a glob of files. can be used as a loader-cache loader, or by itself as an a-la-carte replacement or addition to vinyl src.

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

stream-loader NPM version

create a read stream from a glob of files. can be used as a loader-cache loader, or by itself as an a-la-carte replacement or addition to vinyl src.

Install

Install with npm

$ npm i stream-loader --save

Usage

var loader = require('stream-loader');
var dest = require('dest');

var src = loader();
src('*.js')
  .pipe(jshint())
  .pipe(minify())
  .pipe(dest('dist/'));

with vinyl

Load files as vinyl files (WIP)

var loader = require('stream-loader');
var File = require('vinyl');
var src = loader(function (file, options, cb) {
  return cb(null, new File(file));
});

src('*.js')
  .pipe(jshint())
  .pipe(minify())
  .pipe(loader.contents())
  .pipe(dest('dist/'));

API

  • iterator-streams: Iterate over a stack of streams.
  • loader-cache: Register loader functions that dynamically read, parse or otherwise transform file contents when the name… more
  • template: Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… more

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.

This file was generated by verb-cli on July 02, 2015.

Keywords

async

FAQs

Package last updated on 03 Jul 2015

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