JSPM

from2-string

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 145405
  • Score
    100M100P100Q165570F
  • License MIT

Create a stream from a string. Sugary wrapper around from2

Package Exports

  • from2-string

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (from2-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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