{"name":"gatsby-plugin-catch-links","version":"1.0.0-alpha12-alpha.f4d91ef3","description":"Intercepts local links from markdown and other non-react pages and does a client-side pushState to avoid the browser having to refresh the page.","main":"index.js","scripts":{"build":"babel src --out-dir .","watch":"babel -w src --out-dir ."},"keywords":["gatsby","gatsby-plugin"],"author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"license":"MIT","dependencies":{"catch-links":"^2.0.1"},"devDependencies":{"babel-cli":"^6.22.2"},"_id":"gatsby-plugin-catch-links@1.0.0-alpha12-alpha.f4d91ef3","_shasum":"e4f2af3dff964529dcdc89d042a611c312c6e984","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"kylemathews","email":"mathews.kyle@gmail.com"},"maintainers":[{"name":"kylemathews","email":"mathews.kyle@gmail.com"}],"dist":{"shasum":"e4f2af3dff964529dcdc89d042a611c312c6e984","tarball":"http://registry-npm.ywwl.com/gatsby-plugin-catch-links/download/gatsby-plugin-catch-links-1.0.0-alpha12-alpha.f4d91ef3.tgz","integrity":"sha512-a10w3byYmV/mdJ4fItW1OvWrxVGcSW0ZIy0A6OfCQCbVUZYLlVXPTIrlvt9wpQxWwP6uhJDrK22KfznI2fkP1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIChFhPXdrt5/JOfFmegDHN+21NIPXa7ulYSeGS8DF8U2AiEAuu2MKXjIhhXEDdTX4suq7lusouazLiGtG+G9YOFiGjw="}],"size":1130,"noattachment":false,"key":"/gatsby-plugin-catch-links/-/gatsby-plugin-catch-links-1.0.0-alpha12-alpha.f4d91ef3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gatsby-plugin-catch-links-1.0.0-alpha12-alpha.f4d91ef3.tgz_1487621126013_0.6373704846482724"},"directories":{},"readme":"# gatsby-plugin-catch-links\n\nThis plugin intercepts all local links that have not been created in React using [`gatsby-link`](https://gatsbyjs.com/docs/gatsby-link), and replaces their behavior with that of the `gatsby-link` [`navigate`](https://gatsbyjs.com/docs/gatsby-link/#how-to-use-the-navigate-helper-function). This avoids the browser having to refresh the whole page when navigating between local pages, preserving the Single Page Application (SPA) feel.\n\nExample use cases:\n\n- A markdown file with relative links (transformed\n  to `a` tags by\n  [`gatsby-transformer-remark`](/plugins/gatsby-transformer-remark/))\n- An `a` tag that has been created by a Content Management System (CMS) WYSIWYG editor\n\n## Installation\n\n```shell\nnpm install gatsby-plugin-catch-links\n```\n\n## How to use\n\n```javascript\n// In your gatsby-config.js\nplugins: [`gatsby-plugin-catch-links`]\n```\n\n## Plugin Options\n\n**`excludePattern`** [Regular Expression][optional]\n\nRegular expression for paths to be excluded from being handled by this plugin.\n\n```javascript\n{\n  resolve: `gatsby-plugin-catch-links`,\n  options: {\n    excludePattern: /(excluded-link|external)/,\n  },\n},\n```\n\n## Examples\n\n- Check out this live example [_Using Remark_](https://using-remark.gatsbyjs.org/copy-linked-files-intercepting-local-links/#intercepting-local-links) to see this plugin in action. The full source code for this example can be found [here](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-remark).\n","publish_time":1487621126228,"_cnpm_publish_time":1487621126228,"dist-tags":{"alpha-9689ff":"4.23.0-alpha-9689ff.25","alpha-a5-peer":"4.23.0-alpha-a5-peer.70","alpha-qe-sm":"3.14.0-alpha-qe-sm.46","alpha-transformer-json":"4.14.0-alpha-transformer-json.26","alpha-ts-jit":"4.6.0-alpha-ts-jit.60","alpha-v5":"5.0.0-alpha-v5.d20221012t101120.57","asset-prefix":"2.0.12-asset-prefix.226","drupal-proxyurl":"5.0.0-alpha-drupal-proxyurl.14","drupal-self-reference":"4.18.0-alpha-drupal-self-reference.18","image-helpers":"2.5.0-image-helpers.58","image-service":"4.8.0-alpha-image-service.24","latest":"5.16.0","latest-v1":"1.0.26","latest-v3":"3.15.0","latest-v4":"4.25.0","next":"5.17.0-next.0","otp-test":"2.1.6-otp-test.69","preview-gh-api":"4.23.0-alpha-preview-gh-api.26","reach-router":"3.0.0-reach-router.186","react19":"5.17.0-react19.1","unifiedroutes":"2.2.3-unifiedroutes.76","v3rc":"3.0.0-v3rc.0","wp-image-cdn-auth":"4.15.0-alpha-wp-image-cdn-auth.48"}}