{"library":"restify-safe-json-formatter","type":"library","category":null,"description":"A restify formatter that unicode-escapes <, >, and & characters in JSON responses as \\u003c, \\u003e, and \\u0026 respectively, preventing browsers from interpreting JSON as HTML. Version 0.4.10 is the latest release, last updated in 2018. It requires Node.js >=10 and npm >=6.4.1. This package is a lightweight alternative to manually escaping JSON for XSS prevention, specifically designed for Restify servers.","language":"javascript","status":"maintenance","version":"0.4.10","tags":["javascript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install restify-safe-json-formatter","imports":["import safeJsonFormatter from 'restify-safe-json-formatter'","const safeJsonFormatter = require('restify-safe-json-formatter')","type Formatter = (req: Request, res: Response, body: any) => string"]},{"cmd":"yarn add restify-safe-json-formatter","imports":[]},{"cmd":"pnpm add restify-safe-json-formatter","imports":[]}],"homepage":"https://github.com/g-k/restify-safe-json-formatter#readme","github":"https://github.com/g-k/restify-safe-json-formatter","docs":null,"changelog":null,"pypi":null,"npm":"restify-safe-json-formatter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}