New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

riposte

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

riposte

Creates predictable API response objects by placing errors, warnings, and data in a well defined envelope.

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
2
Created
Source

Riposte

Reply

NameTypeDescription
idStringUnique identifier for the original client's request all the way to the final response.

toObject

Converts the Reply instance into a JSON object that can be return in an API response.

Parameters

#ParameterRequiredTypeDefaultDescription
1optionsnoObject{}Overrides default behaviors when converting the reply instance to an object.
1options.sanitizeDatanoBooleanfalseWhen true, calls the ON_SANITIZE_DATA Riposte handler before adding the data to the response object.
2cbyesFunctionundefined

Express

res.reply res.replyOptions

Keywords

API

FAQs

Package last updated on 07 Mar 2017

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