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

conformity

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

conformity - npm Package Compare versions

Comparing version 0.0.1-pre5 to 0.0.2

test/conformity.spec.js

4

lib/index.js

@@ -13,3 +13,3 @@ var Joi = require('joi');

return function (status, callback) {
var send = res.send;
var send = res.send.bind(res);
if (res.prettyError) {

@@ -96,2 +96,2 @@ send = res.prettyError;

module.exports.Conformity = Conformity;
module.exports.Joi = Joi;
module.exports.Joi = Joi;
{
"name": "conformity",
"version": "0.0.1-pre5",
"version": "0.0.2",
"description": "JSON validation middleware for express.js, kitchensink, etc",

@@ -25,6 +25,3 @@ "main": "index.js",

],
"author": {
"name": "Van Nguyen",
"email": "thegoleffect@gmail.com"
},
"author": "Van Nguyen <thegoleffect@gmail.com>",
"license": "MIT",

@@ -34,13 +31,3 @@ "dependencies": {

"xss": "^0.2.10"
},
"readme": "# Conformity - HTTP Parameter Validation Middleware\n\n[![Dependency Status](https://david-dm.org/thegoleffect/conformity.svg)](https://david-dm.org/thegoleffect/conformity.svg)\n[![devDependency Status](https://david-dm.org/thegoleffect/conformity/dev-status.svg)](https://david-dm.org/thegoleffect/conformity/dev-status.svg)\n\nConformity is a JSON validation middleware for express.js. It lets you perform path, query, payload, and response validation without polluting your handler code. Additionally, it performs XSS html escaping automatically.\n\n## Getting Started\n\n```\nnpm install --save conformity\n```\n\n\n```\nvar Express = require('express');\nvar Conformity = require('conformity');\nvar Joi = Conformity.validator;\n\nvar app = Express();\n\n// CONFORMITY USAGE:\napp.use(Conformity.validate());\nvar IndexHandler = function (req, res) {\n return 'Hello! ' + req.params.name;\n}\nIndexHandler.validate = {\n path: {\n name: Joi.string().required()\n }\n};\n\napp.get('/:name', IndexHandler);\n\napp.listen(3000);\n```",
"readmeFilename": "README.md",
"gitHead": "db386179e4a1479f6d6c16ea395693cf55144631",
"bugs": {
"url": "https://github.com/thegoleffect/conformity/issues"
},
"homepage": "https://github.com/thegoleffect/conformity",
"_id": "conformity@0.0.1-pre5",
"_shasum": "fedb519750687cfb022b9e9a32592e0abb871b63",
"_from": "conformity@0.0.1-pre5"
}
}
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