stringify-array-transform

1.0.4 • Public • Published

stringify-array-transform.js

NPM version build status

Trivial Transform wrapping JSON.stringify for Array output. Outputs nothing for an empty Array.

var StringifyArrayTransform = require('stringify-array-transform');
require('http').createServer(function(request, response) {
  response.statusCode = 404;
  // ...
  .once('data', function() {
    response.statusCode = 200;
    response.setHeader('Content-Type', 'application/json');
  })
  .pipe(new StringifyArrayTransform())
  .pipe(response);
});

Readme

Keywords

none

Package Sidebar

Install

npm i stringify-array-transform

Weekly Downloads

2

Version

1.0.4

License

Apache-2.0

Last publish

Collaborators

  • kemitchell