Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deet

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deet

A bad data repellent. Use to make your API more intelligent and expressive, and safer, with JSONSchema validation

  • 1.4.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

deet

Middleware enabling validation of JSON payloads sent toExpressAPI endpoints against JSON Schemas.

Why validate with JSON schemas?

  • Simple - JSON schemas are a simple and expressive,standardway to describe the data that your API expects to receive.
  • Standard - That part where you have to design and implement a payload description and validation model? Already done.
  • Safe - Your application never sees payloads that fail to validate. Failures are isolated and self-managing, external to your application logic. Can also help with XSS and other spoofing attacks.
  • Expressive - Validation errors precisely identify the location and type of error, with the validation rules open and accessible.
  • Expressive - Creating a JSON Schema documents API requirements.
  • Expressive - JSON Schemas extend JSON syntax, providing a powerful and well understood data-interchange format for distributed applications.

Installation

npm install deet

About JSON schemas

Testing

node test

or

npm test

Keywords

FAQs

Package last updated on 26 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc