Need private packages and team management tools?Check out npm Teams »

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);
});

Keywords

none

Install

npm i stringify-array-transform

DownloadsWeekly Downloads

0

Version

1.0.4

License

Apache-2.0

Last publish

Collaborators

  • avatar