into-stream

WebJar for into-stream

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

into-stream
Last Version

Last Version

3.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

into-stream
WebJar for into-stream
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/into-stream

Download into-stream

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/into-stream/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>into-stream</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/into-stream/
implementation 'org.webjars.npm:into-stream:3.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/into-stream/
implementation ("org.webjars.npm:into-stream:3.1.0")
'org.webjars.npm:into-stream:jar:3.1.0'
<dependency org="org.webjars.npm" name="into-stream" rev="3.1.0">
  <artifact name="into-stream" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='into-stream', version='3.1.0')
)
libraryDependencies += "org.webjars.npm" % "into-stream" % "3.1.0"
[org.webjars.npm/into-stream "3.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : from2 jar [2.1.1,3)
org.webjars.npm : p-is-promise jar [1.1.0,2)

Project Modules

There are no modules declared in this project.

into-stream Build Status

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

Versions

Version
3.1.0