{"_id":"popsicle-redirects","_rev":"264965","name":"popsicle-redirects","description":"Popsicle middleware for following HTTP redirects","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"}],"time":{"modified":"2021-06-03T17:03:14.000Z","created":"2019-06-11T03:43:43.611Z","1.1.0":"2019-06-13T04:35:01.610Z","1.0.1":"2019-06-11T06:13:36.598Z","1.0.0":"2019-06-11T03:43:43.611Z"},"users":{},"author":{"name":"Blake Embrey","email":"hello@blakeembrey.com","url":"http://blakeembrey.me"},"repository":{"type":"git","url":"git://github.com/serviejs/popsicle-redirects.git"},"versions":{"1.1.0":{"name":"popsicle-redirects","version":"1.1.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","redirect","301","302","http"],"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.1.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.1.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":"0a5076262ce0c1eb0f0502f8d13ba07da1335caf","_id":"popsicle-redirects@1.1.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"shasum":"2a5abb49a7ad49c02e90b24d4608dc0b8b23176a","size":5559,"noattachment":false,"key":"/popsicle-redirects/-/popsicle-redirects-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/popsicle-redirects/download/popsicle-redirects-1.1.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.1.0_1560400501467_0.21634655828655647"},"_hasShrinkwrap":false,"publish_time":1560400501610,"_cnpm_publish_time":1560400501610},"1.0.1":{"name":"popsicle-redirects","version":"1.0.1","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","redirect","301","302","http"],"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":"4c6c6551b702f283e237019a512608378b5d9ebc","_id":"popsicle-redirects@1.0.1","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"shasum":"1e926906be83624e004a7cb4125d39d93b418f1f","size":5518,"noattachment":false,"key":"/popsicle-redirects/-/popsicle-redirects-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/popsicle-redirects/download/popsicle-redirects-1.0.1.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.1_1560233616447_0.8458385375056177"},"_hasShrinkwrap":false,"publish_time":1560233616598,"_cnpm_publish_time":1560233616598},"1.0.0":{"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":{"shasum":"40eb9345aff130c40a98ee5ab91482331c94bfa2","size":5524,"noattachment":false,"key":"/popsicle-redirects/-/popsicle-redirects-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/popsicle-redirects/download/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,"publish_time":1560224623611,"_cnpm_publish_time":1560224623611}},"readme":"# Popsicle Redirects\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\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.svg?style=flat\n[npm-url]: https://npmjs.org/package/popsicle-redirects\n[downloads-image]: https://img.shields.io/npm/dm/popsicle-redirects.svg?style=flat\n[downloads-url]: https://npmjs.org/package/popsicle-redirects\n[travis-image]: https://img.shields.io/travis/serviejs/popsicle-redirects.svg?style=flat\n[travis-url]: https://travis-ci.org/serviejs/popsicle-redirects\n[coveralls-image]: https://img.shields.io/coveralls/serviejs/popsicle-redirects.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/serviejs/popsicle-redirects?branch=master\n","_attachments":{},"homepage":"https://github.com/serviejs/popsicle-redirects","bugs":{"url":"https://github.com/serviejs/popsicle-redirects/issues"},"license":"MIT"}