All Projects → sindresorhus → Into Stream

sindresorhus / Into Stream

Licence: mit
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Into Stream

Noop Stream
Create a readable Node.js stream that produces no data (or optionally blank data) or a writable stream that discards data
Stars: ✭ 40 (-76.05%)
Mutual labels:  stream, npm-package
Bigdata practice
大数据分析可视化实践
Stars: ✭ 166 (-0.6%)
Mutual labels:  stream
Do Not Disturb
Control the macOS `Do Not Disturb` feature
Stars: ✭ 155 (-7.19%)
Mutual labels:  npm-package
Simple Websocket
Simple, EventEmitter API for WebSockets
Stars: ✭ 159 (-4.79%)
Mutual labels:  stream
React Native Activity Feed
Official React Native SDK for Activity Feeds
Stars: ✭ 156 (-6.59%)
Mutual labels:  stream
Rsocket Java
Java implementation of RSocket
Stars: ✭ 2,099 (+1156.89%)
Mutual labels:  stream
Fetch Stream Audio
Low Latency web audio playback examples for decoding audio streams in chunks with Fetch & Streams APIs
Stars: ✭ 153 (-8.38%)
Mutual labels:  stream
Multiqueue
A fast mpmc queue with broadcast capabilities
Stars: ✭ 167 (+0%)
Mutual labels:  stream
Fpgo
Monad, Functional Programming features for Golang
Stars: ✭ 165 (-1.2%)
Mutual labels:  stream
Magic Iterable
Call a method on all items in an iterable by calling it on the iterable itself
Stars: ✭ 159 (-4.79%)
Mutual labels:  npm-package
Vlc Example Streamplayer
Example code how to play a stream with VLC
Stars: ✭ 158 (-5.39%)
Mutual labels:  stream
Gh Got
Convenience wrapper for Got to interact with the GitHub API
Stars: ✭ 156 (-6.59%)
Mutual labels:  npm-package
Speedment
Speedment is a Stream ORM Java Toolkit and Runtime
Stars: ✭ 1,978 (+1084.43%)
Mutual labels:  stream
Watermark
Add watermark on images use HTML5 and Javascript.
Stars: ✭ 154 (-7.78%)
Mutual labels:  npm-package
Alfred Dark Mode
Alfred 3 workflow to toggle the system dark mode
Stars: ✭ 165 (-1.2%)
Mutual labels:  npm-package
Gloria
Gloria is a static website generator, based on NodeJS.
Stars: ✭ 153 (-8.38%)
Mutual labels:  npm-package
Brain.js
brain.js is a GPU accelerated library for Neural Networks written in JavaScript.
Stars: ✭ 12,358 (+7300%)
Mutual labels:  stream
Streamwall
Display a mosaic of livestreams. Built for streaming.
Stars: ✭ 160 (-4.19%)
Mutual labels:  stream
Rxjava2 Extras
Utilities for use with RxJava 2
Stars: ✭ 167 (+0%)
Mutual labels:  stream
Rxdownloader
Demo of Downloading Songs/Images through Android Download Manager using RxJava2
Stars: ✭ 166 (-0.6%)
Mutual labels:  stream

into-stream

Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream

Correctly chunks up the input and handles backpressure.

Install

$ npm install into-stream

Usage

const intoStream = require('into-stream');

intoStream('unicorn').pipe(process.stdout);
//=> 'unicorn'

API

intoStream(input)

Type: Buffer | TypedArray | ArrayBuffer | string | Iterable<Buffer | string> | AsyncIterable<Buffer | string> | Promise
Returns: Readable stream

Adheres to the requested chunk size, except for array where each element will be a chunk.

intoStream.object(input)

Type: object | Iterable<object> | AsyncIterable<object> | Promise
Returns: Readable object stream

Related

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].