{"name":"gatsby-plugin-catch-links","version":"5.15.0","keywords":["gatsby","gatsby-plugin"],"author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"license":"MIT","_id":"gatsby-plugin-catch-links@5.15.0","maintainers":[{"name":"pieh","email":"misiek.piechowiak@gmail.com"},{"name":"kathmbeck","email":"katherine.beck@netlify.com"},{"name":"serhalp-netlify","email":"philippe.serhal@netlify.com"},{"name":"mlgualtieri-gatsby","email":"mike.gualtieri@netlify.com"},{"name":"fk","email":"sechskilo@gmail.com"},{"name":"tylerbarnes","email":"tyler@known.design"},{"name":"daniellewgatsby","email":"daniel.lew@gatsbyjs.com"}],"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-catch-links#readme","bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dist":{"shasum":"0a8037f38cb58714fa95d96a0fe20678d9f8390d","tarball":"http://registry-npm.ywwl.com/gatsby-plugin-catch-links/download/gatsby-plugin-catch-links-5.15.0.tgz","fileCount":10,"integrity":"sha512-1/4rMadWkw5cfIVVZXIQF8rGjDBt6uUXM0r+3lEnUAy+BY9aTTY3TSSb6kNQC12O3hZPdbFmqCoRWW2SsIW2hw==","signatures":[{"sig":"MEUCIA4nfs23wkMCSgEPX1GfwvbKanY9/8uIN+sAyjapQdaGAiEAw72oTDcPIY0RbHYGORrNUepIVpX6/0m5QeFfzyDbtY4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53257,"size":10184,"noattachment":false,"key":"/gatsby-plugin-catch-links/-/gatsby-plugin-catch-links-5.15.0.tgz"},"main":"index.js","engines":{"node":">=18.0.0"},"gitHead":"e620ad92732af0b7ff222ea8cee5224abb8299aa","scripts":{"build":"babel src --out-dir . --ignore \"**/__tests__\"","watch":"babel -w src --out-dir . --ignore \"**/__tests__\"","prepare":"cross-env NODE_ENV=production npm run build"},"_npmUser":{"name":"serhalp-netlify","email":"philippe.serhal@netlify.com"},"repository":{"url":"git+https://github.com/gatsbyjs/gatsby.git","type":"git","directory":"packages/gatsby-plugin-catch-links"},"_npmVersion":"lerna/3.22.1/node@v18.20.7+arm64 (darwin)","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.","directories":{},"_nodeVersion":"18.20.7","dependencies":{"@babel/runtime":"^7.20.13","escape-string-regexp":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"cross-env":"^7.0.3","@babel/cli":"^7.20.7","@babel/core":"^7.20.12","babel-preset-gatsby-package":"^3.15.0"},"peerDependencies":{"gatsby":"^5.0.0-next"},"_npmOperationalInternal":{"tmp":"tmp/gatsby-plugin-catch-links_5.15.0_1756315552661_0.6830493026896916","host":"s3://npm-registry-packages-npm-production"},"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":1756315552852,"_cnpm_publish_time":1756315552852,"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"}}