{"name":"gatsby-plugin-catch-links","version":"1.0.0-beta.2-alpha.38d760b4","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","devDependencies":{"babel-cli":"^6.24.1"},"_id":"gatsby-plugin-catch-links@1.0.0-beta.2-alpha.38d760b4","_shasum":"db309469437075b762aa72e945fa627b27759aff","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.1","_npmUser":{"name":"kylemathews","email":"mathews.kyle@gmail.com"},"dist":{"shasum":"db309469437075b762aa72e945fa627b27759aff","tarball":"http://registry-npm.ywwl.com/gatsby-plugin-catch-links/download/gatsby-plugin-catch-links-1.0.0-beta.2-alpha.38d760b4.tgz","integrity":"sha512-sHHeWq18u+Yg9YNUBfnX3Apob6Mu72RFnPfRFGGa+l4nJI5YP60rpPTWEmZB/MtACTzWA7urMiBBIff9mijaaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuW3agEin38frUNlbPsjA0gDUtp561dg2n4++xDm1hvAiAP7dsKQCQZl2F1MRyQwa29jopwdoFt4VNdQ51BE/++zg=="}],"size":1859,"noattachment":false,"key":"/gatsby-plugin-catch-links/-/gatsby-plugin-catch-links-1.0.0-beta.2-alpha.38d760b4.tgz"},"maintainers":[{"name":"kylemathews","email":"mathews.kyle@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-catch-links-1.0.0-beta.2-alpha.38d760b4.tgz_1498005335959_0.3151846034452319"},"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":1498005336149,"_cnpm_publish_time":1498005336149,"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"}}