# from2-string

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

Latest version **1.1.0** (published 2015-07-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install from2-string
pnpm add from2-string
yarn add from2-string
bun add from2-string
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-07-04 |
| First published | 2015-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Maintainers | yoshuawuyts |
| Keywords | stream, string, from, source, from2, stream2, streams2 |

## Links

- npm: https://www.npmjs.com/package/from2-string
- Repository: https://github.com/yoshuawuyts/from2-string
- Homepage: https://github.com/yoshuawuyts/from2-string#readme
- Issues: https://github.com/yoshuawuyts/from2-string/issues
- npm.io page: https://npm.io/package/from2-string

## Dependencies (1)

- [from2](https://npm.io/package/from2.md) ^2.0.3

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-07-04
- 1.0.2 — 2015-04-30
- 1.0.1 — 2015-04-30
- 1.0.0 — 2015-04-30

## README

# from2-string
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Downloads][downloads-image]][downloads-url]
[![js-standard-style][standard-image]][standard-url]

Create a stream from a string. Sugary wrapper around
[from2](https://github.com/hughsk/from2).

## Installation
```bash
$ npm install from2-string
```

## Usage
```js
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](https://github.com/hughsk/from2) - Convenience wrapper for ReadableStream, with an API lifted from "from" and "through2"
- [from2-array](https://github.com/binocarlos/from2-array) - Create a from2 stream based on an array of source values

## License
[MIT](https://tldrlegal.com/license/mit-license)

[npm-image]: https://img.shields.io/npm/v/from2-string.svg?style=flat-square
[npm-url]: https://npmjs.org/package/from2-string
[travis-image]: https://img.shields.io/travis/yoshuawuyts/from2-string.svg?style=flat-square
[travis-url]: https://travis-ci.org/yoshuawuyts/from2-string
[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/from2-string.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/yoshuawuyts/from2-string?branch=master
[downloads-image]: http://img.shields.io/npm/dm/from2-string.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/from2-string
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: https://github.com/feross/standard

---
_Source: https://npm.io/package/from2-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
