{"name":"popsicle-status","version":"3.0.0","description":"Popsicle middleware for rejecting responses with bad HTTP statuses","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prettier":"prettier --write","lint":"tslint \"src/**/*.ts\" --project tsconfig.json","format":"npm run prettier -- README.md \"src/**/*.{js,ts}\"","build":"rimraf dist && tsc","specs":"jest --coverage","test":"npm run -s lint && npm run -s build && npm run -s specs && npm run -s size","prepare":"npm run build","size":"size-limit"},"repository":{"type":"git","url":"git://github.com/blakeembrey/popsicle-status.git"},"keywords":["popsicle","plugin","status","http","response"],"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"license":"MIT","bugs":{"url":"https://github.com/blakeembrey/popsicle-status/issues"},"homepage":"https://github.com/blakeembrey/popsicle-status","size-limit":[{"path":"./dist/index.js","limit":"200 B"}],"jest":{"roots":["<rootDir>/src/"],"transform":{"\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,json,css,md}":["npm run prettier","git add"]},"publishConfig":{"access":"public"},"peerDependencies":{"servie":"^4.0.0"},"devDependencies":{"@types/jest":"^24.0.13","husky":"^2.4.0","jest":"^24.8.0","lint-staged":"^8.2.0","prettier":"^1.18.2","servie":"^4.0.6","size-limit":"^1.3.6","standard":"^10.0.2","throwback":"^4.0.0","ts-jest":"^24.0.2","tslint":"^5.17.0","tslint-config-prettier":"^1.18.0","tslint-config-standard":"^8.0.1","typescript":"^3.5.1"},"gitHead":"48bf8e04be43d86136203177fd6a93c35bf9fdbd","_id":"popsicle-status@3.0.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-1ZPBZLvzlXFLEk3umGSkgt5eQ0SgeyuWnFXNHFUQDcX5vumDs0MsGo77zvCi/xBaLtyyrs8HIEBw56+cHoxTEA==","shasum":"5cc646a33a89cc3c411e035cb99ff1a1818db262","tarball":"http://registry-npm.ywwl.com/popsicle-status/download/popsicle-status-3.0.0.tgz","fileCount":9,"unpackedSize":12177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/WWXCRA9TVsSAnZWagAABowP/j9jRYmYXhazIog3649G\n0YkUkXhw9w3Pw86g5vKYQGct/WZGpgaPQlaAePbBIIOEQEOfGZPWl3eBpFi4\nwIrGJCdquQ1WnJPU+7EUof13bj/LtbxLHQWZurCkl4xSWM9MxVH8Mdh1Gc2E\n5BwJXo11eDyRaPfjdDcaGPJIM+dEiuN3oI2tvUaziU5idtKo9uRJ65srbxj2\nEYayhtUfy04QrHdRQHvapQ096MNosXE7s/u7Ai2wp7C9gv6sPCda8DDJOZJ0\nENquC985SrNjcgPYOgfDgNpl8SNY3MW+V7Xyd1fK4px3LPRSDq3oJZTuP9LW\ngqQOchb9Q+wBxzKhNo9mZfntH+PiLKiS+VjrP7GKOaqUwFP5dm2Q7MYGQkEs\nGSiyAOhHAaD+cbGQPiEWEx2ds2waGrjf4uGTDtDILG1JQuHJLd2zV+nAvTHs\nfPORWlPIpmCerPaE4huky/wu7HNY45wztjQm1pNuhyRMv3X6LVMEGA5HRUYK\nVf1fwrxmj/fg5PHPR8763tvMZJUddbT1vzUNgNTBdNJ+FKMyT8t0sbYxxRuh\nv3gZ5qPUk+/IQKYauMJp4k7UA9kHEPe3RKrdHG+hPKPmx9BrXRFpWhE6qIRg\nXP1y/EUAqWRkc1SRqtBotoX5IEoJD8hPWD0Or+Q3r8s5S+gxWPujJr7WkxO3\nP6tl\r\n=fX7t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUQkA6vk9uMNetLFenmTfx6EWDUjAAOquAVjhs8QXergIhAPi/i5lLGFfWktoLLCPwDqOhs9ukqLmNyyGDSv9cE79j"}],"size":4035,"noattachment":false,"key":"/popsicle-status/-/popsicle-status-3.0.0.tgz"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"_npmUser":{"name":"blakeembrey","email":"hello@blakeembrey.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/popsicle-status_3.0.0_1560110487307_0.7830383278098842"},"_hasShrinkwrap":false,"readme":"# Popsicle Status\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n\nPopsicle middleware for rejecting responses with bad HTTP statuses.\n\n## Installation\n\n```\nnpm install popsicle-status --save\n```\n\n## Usage\n\n```js\nimport { status } from \"popsicle-status\";\n\nconst middleware = status();\n\nconst res = await middleware(req, send);\n```\n\n### **status(min?: number, max?: number)**\n\nDefault status codes of min `200` (inclusive) and max `400` (exclusive).\n\n## TypeScript\n\nThis project is written using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.\n\n## License\n\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/popsicle-status.svg?style=flat\n[npm-url]: https://npmjs.org/package/popsicle-status\n[downloads-image]: https://img.shields.io/npm/dm/popsicle-status.svg?style=flat\n[downloads-url]: https://npmjs.org/package/popsicle-status\n[travis-image]: https://img.shields.io/travis/blakeembrey/popsicle-status.svg?style=flat\n[travis-url]: https://travis-ci.org/blakeembrey/popsicle-status\n[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/popsicle-status.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/blakeembrey/popsicle-status?branch=master\n","publish_time":1560110487407,"_cnpm_publish_time":1560110487407,"dist-tags":{"latest":"3.0.0"}}