🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

stringify-object-transform

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stringify-object-transform

trivial JSON.stringify Transform for Objects

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 20 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts