{"_id":"@gohike.nl/react-redirection","_rev":"26-43c216c6e390fe6f550cc44ac9571560","time":{"1.0.8":"2021-01-27T13:18:49.839Z","created":"2021-01-27T13:23:01.732Z","1.0.0-beta.1":"2021-01-27T13:23:02.003Z","modified":"2022-04-05T14:53:21.499Z"},"name":"@gohike.nl/react-redirection","dist-tags":{"beta":"1.0.0-beta.1","latest":"1.0.0-beta.1"},"versions":{"1.0.0-beta.1":{"name":"@gohike.nl/react-redirection","version":"1.0.0-beta.1","description":"redirection tool for react","author":{"name":"Gio"},"license":"MIT","repository":{"type":"git","url":"https://bitbucket.org/gohike/react-redirect/src/master/"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.js","engines":{"node":">=10"},"scripts":{"build":"microbundle-crl --no-compress --format modern,cjs","start":"microbundle-crl watch --no-compress --format modern,cjs","prepare":"run-s build","test":"mocha"},"peerDependencies":{"react":"^16.0.0"},"devDependencies":{"babel-eslint":"^10.0.3","chai":"^4.2.0","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-config-standard-react":"^9.2.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^11.0.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.17.0","eslint-plugin-standard":"^4.0.1","microbundle-crl":"^0.13.10","mocha":"^8.2.1","npm-run-all":"^4.1.5","prettier":"^2.0.4","react":"^16.13.1","react-dom":"^16.13.1","react-scripts":"^3.4.1"},"dependencies":{"isomorphic-unfetch":"^3.1.0","next":"10.0.3"},"gitHead":"ffb3159ce0abeae5ff6c937fcb9ebcc651d1d482","_id":"@gohike.nl/react-redirection@1.0.0-beta.1","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-n8N3ovLY4fi0gPT1mkjTXSVNtUo+ORWG5/Rr7DQtm64Ubx8nCGMRf8eQ7M4U9vs0AeSqmccIoz1hHQCnsiJGMQ==","shasum":"af25103850697497962e78ad945ca5adc515d9c8","tarball":"https://registry.npmjs.org/@gohike.nl/react-redirection/-/react-redirection-1.0.0-beta.1.tgz","fileCount":6,"unpackedSize":78848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEWk2CRA9TVsSAnZWagAAjLcP+gK0RwYcgfpfiC2sekPK\nAXHRqxHRxCSr09zAU5qOz9WBQhoZaP7NVDeGu0ChlMOWQEXjeWlfIezytkc7\nP3TR1iCqsriq0tGwJXDuNfGsWVvnnvyRXa3iZ03zT8dVOjNdc9av1v4QRkCs\nTQHPObz+dFPJnHOAcJK5xjz14WEHUKw/mJrPZ4OIgqVCd0CaTTNiwTqgkR6o\nmdBe5arx2IzEW+2vrVuED1u2+BG/QYuqW29uN6QOsde5eSEAYAYK3gVxZot4\n/FJ5nbC3xREr+8HakUwZ1mqYmTQAObC4C3udzE9nKLftDZq1Xxjy+m92gYg6\n2mDCbkUuZw7cpfZAln7DYioEC0az/C49vEGeTLbSnthulfh4EmI+bJ2I2ZpM\n47V84hB4Aq/rWFP+DvVlZEZQ0LtPqlxetoszVDms51bYHIqqBtJ4YBBwccQd\n06ApFz9q9Iv6FvQ/1mlnPvJNIJ60dcPzxS9va5Y55P0TwtwUwm/pT47TuTrQ\n/K0oeLcNzrPUYx5TvcSoykcGVJO/84wDRtWLuzMfoQCC1cxfaBQItFJ3auuN\nCgmSPoZjC8X7KBpvWZtWzNQ9jlzDYebbxnvTZ+zWlWSi5/WOFPzrJcq8qYeg\np7fpNMfFYvJP+S8CgFOoZ3alhQrLyEamaEhNkZ05ni4pXFtglWhd+7KbaTRG\nrbDY\r\n=Lb1w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEM53z7NyVhupFjn140mbLoWYgZ1aPVQOEpzLwnP1wwWAiEAjE2rClNUP27vMBqNqxd21K22wNMc/ZLAMqRyG3OnePM="}]},"_npmUser":{"name":"gohike.nl","email":"hello@gohike.nl"},"directories":{},"maintainers":[{"name":"gohike.nl","email":"hello@gohike.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-redirection_1.0.0-beta.1_1611753781792_0.4336878000764759"},"_hasShrinkwrap":false}},"maintainers":[{"name":"gohike.nl","email":"hello@gohike.nl"}],"description":"redirection tool for react","repository":{"type":"git","url":"https://bitbucket.org/gohike/react-redirect/src/master/"},"author":{"name":"Gio"},"license":"MIT","readme":"# React-Redirection 🚀\n\n## Please know this package is still under development.\n\n[Redirection](https://en.wordpress.org/plugins/redirection/) is a plugin in wordpress that handles redirects.\n\nThis package is for handling redirects using a headless wordpress template.\n\n## How to use.\n\nYou can use the packages by importing `{Link}` from `\"react-redirection\"`\n\nIt's a React component, so you can just pass down the things you need as a prop.\n\n:white_check_mark:\n\n```jsx\nimport { Link } from \"@hike/react-redirection\";\n\nconst App = (data) => (\n  <Link\n    uri={data?.uri}\n    url={data?.url}\n    title={data?.title}\n    target={data?.target}\n  >\n    Link\n  </Link>\n);\n\nexport default App;\n```\n\n## Features\n\nCurrently we support:\n\n- [x] URI redirects (default).\n- [x] Regex redirects.\n\nUp and coming:\n\n- [ ] Server name redirects.(from gohike.eu to gohike.nl/en)\n- [ ] URL and language (Redirects)\n- [ ] 404 (Response)\n- [ ] URL and header (Redirect)\n- [ ] HTTP codes (Response)\n\nNever going to be supported:\n\n- Redirect to random post\n\n- URL and cookie\n\n- URL and user agent\n\n- URL and login status\n\n- URL and referrer\n\n- URL and IP\n\n- URL and custom filter\n","readmeFilename":"README.md"}