stringify-object-transform

1.0.3 • Public • Published

stringify-object-transform.js

NPM version build status

Trivial Transform wrapping JSON.stringify for Object output. Inputs are [key, value] pairs. Outputs nothing for an empty Object.

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

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i stringify-object-transform

    Weekly Downloads

    1

    Version

    1.0.3

    License

    Apache-2.0

    Last publish

    Collaborators

    • kemitchell