{"name":"popsicle-redirects","version":"1.0.0","description":"Popsicle middleware for following HTTP redirects","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 \"*.yml\" \"src/**/*.{js,ts}\"","build":"rimraf dist && tsc","specs":"jest --coverage","test":"npm run lint && npm run build && npm run specs","prepare":"npm run build"},"repository":{"type":"git","url":"git://github.com/serviejs/popsicle-redirects.git"},"keywords":["popsicle","cookies","jar","memory","store"],"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"license":"MIT","bugs":{"url":"https://github.com/serviejs/popsicle-redirects/issues"},"homepage":"https://github.com/serviejs/popsicle-redirects","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","@types/node":"^12.0.7","husky":"^2.4.0","jest":"^24.8.0","lint-staged":"^8.2.0","prettier":"^1.18.2","servie":"^4.0.10","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":"a2b9cc8077abd3c0d52f0cd5ebbba3bb9bd37f44","_id":"popsicle-redirects@1.0.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-vYeZEO9afMqTksHOsgx5DL0NTlI9oT4jDi4sbT6KshojZf8KUYz13k7n/a0IA8df3hG08RB2VpHOO5CHRZgtnA==","shasum":"40eb9345aff130c40a98ee5ab91482331c94bfa2","tarball":"http://registry-npm.ywwl.com/popsicle-redirects/download/popsicle-redirects-1.0.0.tgz","fileCount":9,"unpackedSize":16940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/yNvCRA9TVsSAnZWagAARbsP/1p9/puY3nWLEc6f5CY4\nLuSJ7o48vq1GFhRETyXACtelH4wRGjRFfqSdkowYb5xRJACQBiwQEyziZqmh\n6w/cXBAma+AWxAF6q6tayFWuF3dxy3wynU5/BRcQj4CvX2LSsKAeq5K32iqI\nGpV5Fw2eLxZ+qjET+X9CdGDR7cqSJ9yOALglUBn9ec6IPKIzcEKXRUlnCz4O\n2KjtqzvGYn2/GwJEtJUotvsuScWlLRMSHEA6Mszp5ImmtX6mRz4LguyVUNAX\nmph0YAFJZt+kuq2yDXeqM8jTnEEXIrrhQFUuYysqO6lLzVOww/xVpFs8I49F\nEDZA7935HEPtnmKPJHfnvtxoDp6La6hwcsURGZ3g2DuKpnjM7zyK8f2HXq6w\nHhSeHrrb8L/K1ZvhVtRuPSDHap6F5x/VJ1/oXlWkHNH223Rbn7xD76izVcf9\n1KZBbsFjGp1AnCm+XdUCyPstYfA1LpiKiCdGFMhyB4xXWCHQpn5pO6IOx0J8\n87HLW6fHx+4l8FcAtz7tIx4d6+pRm4QGU2QHVdxmkstayZTQR3yGWKWcmB05\ne+j0xEB5kgIb3UWMURYmRbYiJq8sfQs8aA4TDgS6rKK1cq+jKwJXmAVtxnJr\nVOROINkjUpBZ01y/GtfZ2PKSavhqSf9QXkcBcDiU2KHYBrqR1w33WhDApC/Z\nqlMs\r\n=qwM6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPqj1RuEw7BuBbzeRv+Xo9QpkSdPwkDvucQkviK0zcLgIhAMElj9OYVjxyh2Me1wStnY41z+eb2RYbtgMDR1UYtAfm"}],"size":5524,"noattachment":false,"key":"/popsicle-redirects/-/popsicle-redirects-1.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-redirects_1.0.0_1560224623464_0.743352536051241"},"_hasShrinkwrap":false,"readme":"# Popsicle Redirects\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![Build status][build-image]][build-url]\n[![Build coverage][coverage-image]][coverage-url]\n\n> Popsicle middleware for following HTTP redirects.\n\n## Installation\n\n```\nnpm install popsicle-redirects --save\n```\n\n## Usage\n\n```js\nimport { redirects } from \"popsicle-redirects\";\n\nconst middleware = redirects(transport());\n```\n\n### Options\n\n- `fn` Wrap a [`throwback`](https://github.com/serviejs/throwback) compatible middleware function in redirect behavior\n- `maxRedirects` Set the maximum number of redirects to attempt before throwing an error (default: `5`)\n- `confirmRedirect` Confirmation function for following 307 and 308 non-idempotent redirects (default: `() => false`)\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-redirects\n[npm-url]: https://npmjs.org/package/popsicle-redirects\n[downloads-image]: https://img.shields.io/npm/dm/popsicle-redirects\n[downloads-url]: https://npmjs.org/package/popsicle-redirects\n[build-image]: https://img.shields.io/github/workflow/status/serviejs/popsicle-redirects/CI/main\n[build-url]: https://github.com/serviejs/popsicle-redirects/actions/workflows/ci.yml?query=branch%3Amain\n[coverage-image]: https://img.shields.io/codecov/c/gh/serviejs/popsicle-redirects\n[coverage-url]: https://codecov.io/gh/serviejs/popsicle-redirects\n","publish_time":1560224623611,"_cnpm_publish_time":1560224623611,"dist-tags":{"latest":"1.1.1"}}