npm

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

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

Keywords

none

install

npm i stringify-object-transform

Downloadsweekly downloads

4

version

1.0.3

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability