1. from2-string
Create a stream from a string. Sugary wrapper around from2
from2-string
Package: from2-string
Created by: yoshuawuyts
Last modified: Sat, 18 Jun 2022 03:43:28 GMT
Version: 1.1.0
License: MIT
Downloads: 485,617
Repository: https://github.com/yoshuawuyts/from2-string

Install

npm install from2-string
yarn add from2-string

from2-string

NPM version
build status
Test coverage
Downloads
js-standard-style

Create a stream from a string. Sugary wrapper around
from2.

Installation

 $ npm install from2-string

Usage

 const fromString = require('from2-string')

fromString('hello world').pipe(process.stdout)

Why

In order to use from2 with strings, you must write some boilerplate to
break the string in correctly sized chunks. This module handles that
boilerplate for you, so you can directly source from a string.

See Also

  • from2 - Convenience wrapper for ReadableStream, with an API lifted from "from" and "through2"
  • from2-array - Create a from2 stream based on an array of source values

License

MIT

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code