from2-string
Create a stream from a string. Sugary wrapper around from2
Last updated 11 years ago by yoshuawuyts .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install from2-string 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (11 years ago)

4 Versions

  • 1.1.0                                ...           11 years ago
  • 1.0.2                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 3
Last Month 4
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |