# stringify-stream2

> Streaming Transform of objects via JSON.stringify

Latest version **1.0.0** (published 2015-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install stringify-stream2
pnpm add stringify-stream2
yarn add stringify-stream2
bun add stringify-stream2
```

## 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.0.0 |
| Published | 2015-04-09 |
| First published | 2015-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Matthew I. Metnetsky |
| Maintainers | jcrugzz |
| Keywords | writable, readable, duplex, transform, stream, pipe |

## Links

- npm: https://www.npmjs.com/package/stringify-stream2
- Repository: https://github.com/mimetnet/node-stringify-stream
- Issues: https://github.com/mimetnet/node-stringify-stream/issues
- npm.io page: https://npm.io/package/stringify-stream2

## Dependencies (1)

- [readable-stream](https://npm.io/package/readable-stream.md) ~1.1.0

## 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.0.0 (latest) — 2015-04-09

## README

# stringify-stream2

TEMP package until https://github.com/mimetnet/node-stringify-stream/pull/1 is
merged

Streaming Transform of objects via JSON.stringify

[![build status][1]][2] [![npm version][3]][4] [![dependencies][5]][6] [![devDependencies][7]][8]

## Usage

### Stream objects into newline separated JSON strings.

```js
var test = require('tap').test
    , concat = require('concat-stream')
    , streamify = require('stream-array')
    , stringify = require('stringify-stream')
;

test('newlines', function(t) {
    streamify([1,2,3]).pipe(stringify()).pipe(concat(function(err, res) {
        t.equal('1\n2\n3', res.toString(), 'result matches expectation');
        t.end();
    }));
});
```

### Stream objects into an Array encoded as a JSON string.

```js
var test = require('tap').test
    , concat = require('concat-stream')
    , streamify = require('stream-array')
    , stringify = require('stringify-stream');
;

test('array', function(t) {
    var opts = {open:'[', close:']'};

    streamify([1,2,3]).pipe(stringify(opts)).pipe(concat(function(err, res) {
        t.equal('[1,2,3]', res.toString(), 'result matches expectation');
        t.end();
    }));
});
```

## Install

```
npm install stringify-stream
```

  [1]: https://api.travis-ci.org/mimetnet/node-stringify-stream.png
  [2]: https://travis-ci.org/mimetnet/node-stringify-stream
  [3]: https://badge.fury.io/js/stringify-stream.png
  [4]: https://badge.fury.io/js/stringify-stream
  [5]: https://david-dm.org/mimetnet/node-stringify-stream.png
  [6]: https://david-dm.org/mimetnet/node-stringify-stream
  [7]: https://david-dm.org/mimetnet/node-stringify-stream/dev-status.png?#info=devDependencies
  [8]: https://david-dm.org/mimetnet/node-stringify-stream/#info=devDependencies

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