New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

restify-safe-json-formatter

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restify-safe-json-formatter

A restify formatter that unicode escapes <, >, & as \u003c, \u003e, & respectively to keep some browsers from misinterpreting it as HTML.

0.4.10
latest
Source
npm
Version published
Weekly downloads
71
273.68%
Maintainers
2
Weekly downloads
 
Created
Source

A restify formatter that unicode escapes <, >, & as \u003c, \u003e, \u0026 respectively to keep some browsers from misinterpreting it as HTML.

Usage:

var restify = require('restify');
var safeJsonFormatter = require('restify-safe-json-formatter');

var server = restify.createServer({
  formatters: {
    'application/json; q=0.9': safeJsonFormatter
  }
});

See also: the example server

FAQs

Package last updated on 29 Apr 2021

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