{"_id":"@alterjs/saber-plugin-meta-redirect","name":"@alterjs/saber-plugin-meta-redirect","dist-tags":{"latest":"0.13.0"},"versions":{"0.13.0":{"name":"@alterjs/saber-plugin-meta-redirect","version":"0.13.0","description":"Generates meta redirect html files for redirecting on any static file host","license":"MIT","repository":{"type":"git","url":"git+https://github.com/chawyehsu/saber.git"},"exports":{".":{"import":"./dist/index.min.mjs","require":"./dist/index.min.cjs"}},"main":"./dist/index.min.cjs","module":"./dist/index.min.mjs","scripts":{"build":"rimraf dist && rollup -c","build:example":"saber build example","lint":"eslint src","prepublishOnly":"npm run build"},"peerDependencies":{"@alterjs/saber":"^0.13.0"},"devDependencies":{"url-join":"5.0.0"},"publishConfig":{"access":"public"},"_id":"@alterjs/saber-plugin-meta-redirect@0.13.0","gitHead":"df690b0df6c45372cb41b7fa42003f08edc08bf5","bugs":{"url":"https://github.com/chawyehsu/saber/issues"},"homepage":"https://github.com/chawyehsu/saber#readme","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-foUOGgJw98rUvnM7IOZ7t5YU7LTLAScPHEUjFYrfjZkiXl/La6z0EcV4NUsN2bsrBsDK1sHkIpkqHuyhlor8Mg==","shasum":"8394bc3d731e2559c62f4bed31cab613c0d855a3","tarball":"https://registry.npmjs.org/@alterjs/saber-plugin-meta-redirect/-/saber-plugin-meta-redirect-0.13.0.tgz","fileCount":5,"unpackedSize":5202,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpLOSj9ig4RQksJQ9clbALqFwPeIVBUFMwZQEMQxi7SQIhAJQ0sfFJdqh+/a1XkjJniO/MWqI6iUwxujzY9fFdQ4cE"}]},"_npmUser":{"name":"chawyehsu","email":"su+npm@chawyehsu.com"},"directories":{},"maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/saber-plugin-meta-redirect_0.13.0_1737181414925_0.924014361741857"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-18T06:23:34.802Z","0.13.0":"2025-01-18T06:23:35.100Z","modified":"2025-01-18T06:23:35.414Z"},"maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"description":"Generates meta redirect html files for redirecting on any static file host","homepage":"https://github.com/chawyehsu/saber#readme","repository":{"type":"git","url":"git+https://github.com/chawyehsu/saber.git"},"bugs":{"url":"https://github.com/chawyehsu/saber/issues"},"license":"MIT","readme":"# @alterjs/saber-plugin-meta-redirect\n\nGenerates `<meta>` redirect html files for redirecting on any static file host.\n\n## Install\n\n```bash\nyarn add @alterjs/saber-plugin-meta-redirect\n```\n\n## Usage\n\nIn your `saber-config.yml`:\n\n```yml\nplugins:\n  - resolve: '@alterjs/saber-plugin-meta-redirect'\n```\n\nIn your `saber-node.js`:\n\n```js\nexports.onCreatePages = function () {\n  this.pages.createRedirect({\n    fromPath: '/about',\n    toPath: '/about-us',\n  })\n}\n```\n\nCheck out the docs for [`pages.createRedirect`](<https://saber.land/docs/saber-instance.html#pages.createredirect(config)>).\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}