asdf-games/node_modules/from2-string
2019-08-20 17:59:26 +02:00
..
index.js Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00
LICENSE Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00
package.json Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00
README.md Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00

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