All Projects → gulpjs → Glob Stream

gulpjs / Glob Stream

Licence: mit
A Readable Stream interface over node-glob.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Glob Stream

Soundwaveinteractive
Interactive Sound Board for Mixer. Microsoft shut Mixer down, so this application no longer works. RIP Mixer.
Stars: ✭ 27 (-84.3%)
Mutual labels:  stream, streaming
Rtmp Rtsp Stream Client Java
Library to stream in rtmp and rtsp for Android. All code in Java
Stars: ✭ 1,338 (+677.91%)
Mutual labels:  stream, streaming
Saber
Window-Based Hybrid CPU/GPU Stream Processing Engine
Stars: ✭ 35 (-79.65%)
Mutual labels:  stream, streaming
Ustreamer
µStreamer - Lightweight and fast MJPG-HTTP streamer
Stars: ✭ 533 (+209.88%)
Mutual labels:  stream, streaming
Smoothstream
Webcam, PiCamera streaming over the network with Python made easy.
Stars: ✭ 133 (-22.67%)
Mutual labels:  stream, streaming
Lol Html
Low output latency streaming HTML parser/rewriter with CSS selector-based API
Stars: ✭ 566 (+229.07%)
Mutual labels:  stream, streaming
Athenax
SQL-based streaming analytics platform at scale
Stars: ✭ 1,178 (+584.88%)
Mutual labels:  stream, streaming
Rtspallthethings
Deprecated RTSP media server -- Use github.com/aler9/rtsp-simple-server instead.
Stars: ✭ 258 (+50%)
Mutual labels:  stream, streaming
Twitchrecover
Twitch VOD tool which recovers all VODs including those that are sub only or deleted.
Stars: ✭ 123 (-28.49%)
Mutual labels:  stream, streaming
Nginx Vod Module
NGINX-based MP4 Repackager
Stars: ✭ 1,378 (+701.16%)
Mutual labels:  stream, streaming
Movienight
Single instance video streaming server with integrated chat.
Stars: ✭ 387 (+125%)
Mutual labels:  stream, streaming
Jaxon
Streaming JSON parser for Elixir
Stars: ✭ 145 (-15.7%)
Mutual labels:  stream, streaming
Rxgo
Reactive Extensions for the Go language.
Stars: ✭ 3,907 (+2171.51%)
Mutual labels:  stream, streaming
Nuclear
Streaming music player that finds free music for you
Stars: ✭ 7,133 (+4047.09%)
Mutual labels:  stream, streaming
Multistreamer
[discontinued] A webapp for publishing video to multiple streaming services at once.
Stars: ✭ 281 (+63.37%)
Mutual labels:  stream, streaming
Cypher Stream
Neo4j Cypher queries as Node.js object streams
Stars: ✭ 58 (-66.28%)
Mutual labels:  stream, streaming
TogetherStream
A social and synchronized streaming experience
Stars: ✭ 16 (-90.7%)
Mutual labels:  streaming, stream
Diffy
🎞️💓🍿 Love streaming - It's always best to watch a movie together ! 🤗
Stars: ✭ 37 (-78.49%)
Mutual labels:  streaming, stream
Hls.js
HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
Stars: ✭ 10,791 (+6173.84%)
Mutual labels:  stream, streaming
Azure Event Hubs Spark
Enabling Continuous Data Processing with Apache Spark and Azure Event Hubs
Stars: ✭ 140 (-18.6%)
Mutual labels:  stream, streaming

glob-stream

NPM version Downloads Build Status AppVeyor Build Status Coveralls Status Gitter chat

A Readable Stream interface over node-glob.

Usage

var gs = require('glob-stream');

var readable = gs('./files/**/*.coffee', { /* options */ });

var writable = /* your WriteableStream */

readable.pipe(writable);

You can pass any combination of glob strings. One caveat is that you cannot only pass a negative glob, you must give it at least one positive glob so it knows where to start. If given a non-glob path (also referred to as a singular glob), only one file will be emitted. If given a singular glob and no files match, an error is emitted (see also options.allowEmpty).

API

globStream(globs, options)

Takes a glob string or an array of glob strings as the first argument and an options object as the second. Returns a stream of objects that contain cwd, base and path properties.

Options

options.allowEmpty

Whether or not to error upon an empty singular glob.

Type: Boolean

Default: false (error upon no match)

options.dot

Whether or not to treat dotfiles as regular files. This is passed through to node-glob.

Type: Boolean

Default: false

options.silent

Whether or not to suppress warnings on stderr from node-glob. This is passed through to node-glob.

Type: Boolean

Default: true

options.cwd

The current working directory that the glob is resolved against.

Type: String

Default: process.cwd()

options.root

The root path that the glob is resolved against.

Note: This is never passed to node-glob because it is pre-resolved against your paths.

Type: String

Default: undefined (use the filesystem root)

options.base

The absolute segment of the glob path that isn't a glob. This value is attached to each glob object and is useful for relative pathing.

Type: String

Default: The absolute path segement before a glob starts (see glob-parent)

options.cwdbase

Whether or not the cwd and base should be the same.

Type: Boolean

Default: false

options.uniqueBy

Filters stream to remove duplicates based on the string property name or the result of function. When using a function, the function receives the streamed data (objects containing cwd, base, path properties) to compare against.

Type: String or Function

Default: 'path'

other

Any glob-related options are documented in node-glob. Those options are forwarded verbatim, with the exception of root and ignore. root is pre-resolved and ignore is joined with all negative globs.

Globbing & Negation

var stream = gs(['./**/*.js', '!./node_modules/**/*']);

Globs are executed in order, so negations should follow positive globs. For example:

The following would not exclude any files:

gs(['!b*.js', '*.js'])

However, this would exclude all files that started with b:

gs(['*.js', '!b*.js'])

glob-stream for enterprise

Available as part of the Tidelift Subscription

The maintainers of glob-stream and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].