koa-json-body
Advanced tools
Comparing version 4.0.0 to 5.0.0-alpha.1
{ | ||
"name": "koa-json-body", | ||
"version": "4.0.0", | ||
"version": "5.0.0-alpha.1", | ||
"description": "koa middleware to parse json request bodies", | ||
"main": "index.js", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "mocha test" | ||
}, | ||
@@ -26,5 +26,16 @@ "repository": { | ||
"homepage": "https://github.com/venables/koa-json-body", | ||
"engines": { | ||
"node": ">= 4.0.0" | ||
}, | ||
"dependencies": { | ||
"co-body": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"koa": ">= 2.0.0-alpha.3", | ||
"mocha": "^2.3.3", | ||
"supertest": "^1.1.0" | ||
}, | ||
"peerDependencies": { | ||
"koa": ">= 2.0.0-alpha.3" | ||
} | ||
} |
koa-json-body | ||
============= | ||
[![Dependency Status](https://david-dm.org/venables/koa-json-body.png)](https://david-dm.org/venables/koa-json-body) | ||
[![Version](https://img.shields.io/npm/v/koa-json-body.svg?style=flat-square)](https://www.npmjs.com/package/koa-json-body) | ||
[![Dependency Status](https://img.shields.io/david/venables/koa-json-body/master.svg?style=flat-square)](https://david-dm.org/venables/koa-json-body) | ||
[![Downloads](https://img.shields.io/npm/dm/koa-json-body.svg?style=flat-square)](https://www.npmjs.com/package/koa-json-body) | ||
Very simple [koa](https://github.com/koajs/koa) middleware wrapper around [co-body](https://github.com/visionmedia/co-body) for parsing JSON request bodies. Largely inspired by [koa-body](https://github.com/dlau/koa-body). | ||
Simple [koa](https://github.com/koajs/koa) middleware wrapper around [co-body](https://github.com/visionmedia/co-body) for parsing JSON request bodies. | ||
This will not parse anythig but valid JSON request bodies. If there is a JSON error, the middleware will set `ctx.request.body` to `{}` and continue. | ||
This will not parse anythig but valid JSON request bodies. If there is a JSON parsing error, the middleware will set `ctx.request.body` to `{}` and continue. | ||
NOTE | ||
---- | ||
This branch is for koa v2, which uses Promises instead of Generator functions. For koa 0.x and 1.x support, see the [koa-1](https://github.com/venables/koa-json-body/tree/koa-1) branch. | ||
Installation | ||
@@ -11,0 +18,0 @@ ------------ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
4021
5
56
60
2
3