{"_id":"@alterjs/saber-plugin-feed","_rev":"2-36ff6d3c8a437adf8ab701a19b543bbe","name":"@alterjs/saber-plugin-feed","dist-tags":{"latest":"0.13.1"},"versions":{"0.12.2":{"name":"@alterjs/saber-plugin-feed","version":"0.12.2","license":"MIT","_id":"@alterjs/saber-plugin-feed@0.12.2","maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"homepage":"https://github.com/chawyehsu/saber#readme","bugs":{"url":"https://github.com/chawyehsu/saber/issues"},"dist":{"shasum":"461db22eefaba52d0ff920c11d68a76835953069","tarball":"https://registry.npmjs.org/@alterjs/saber-plugin-feed/-/saber-plugin-feed-0.12.2.tgz","fileCount":6,"integrity":"sha512-7x8QQSSDQ5lICdIG8Q5rYb6B8xPWfJgsVbFxZDuWJOcGeoxwJJT91ALr+iiEUEamxuoc2iADOd5thBVrPJ5pfA==","signatures":[{"sig":"MEUCID+0O7KbXYYqdZ2iuXzVE5yre+/zJdulU4ezp52xlFxcAiEAuZU5lPxk2Xq0lnIeKUIX0uWCBJwj0q6tTp/ZF4sICqQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86571},"main":"./dist/index.min.cjs","module":"./dist/index.min.mjs","exports":{".":{"import":"./dist/index.min.mjs","require":"./dist/index.min.cjs"}},"gitHead":"3cee52f698379a4c669de07556ef9beb401a326a","scripts":{"lint":"eslint src","build":"rimraf dist && rollup -c && node scripts/build.js","build:example":"saber build example","prepublishOnly":"npm run build"},"_npmUser":{"name":"chawyehsu","email":"su+npm@chawyehsu.com"},"repository":{"url":"git+https://github.com/chawyehsu/saber.git","type":"git"},"_npmVersion":"10.7.0","description":"Generate Atom, RSS2, or JSON feed for your Saber app","directories":{},"_nodeVersion":"18.20.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"feed":"^4.2.2","rollup":"^4.24.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^28.0.1","@rollup/plugin-node-resolve":"^15.3.0"},"peerDependencies":{"@alterjs/saber":">=0.12.2"},"_npmOperationalInternal":{"tmp":"tmp/saber-plugin-feed_0.12.2_1729089216586_0.63401507125964","host":"s3://npm-registry-packages"}},"0.13.0":{"name":"@alterjs/saber-plugin-feed","version":"0.13.0","license":"MIT","_id":"@alterjs/saber-plugin-feed@0.13.0","maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"homepage":"https://github.com/chawyehsu/saber#readme","bugs":{"url":"https://github.com/chawyehsu/saber/issues"},"dist":{"shasum":"9953b5926a49fd681d39fb8d9891c3a8adec637c","tarball":"https://registry.npmjs.org/@alterjs/saber-plugin-feed/-/saber-plugin-feed-0.13.0.tgz","fileCount":6,"integrity":"sha512-LxKs6v+c229+wmhlATKq0e5d0PkCuA8E6gQXj4Hm2jcY0lg9cfl3bffbs29Tmc2PeT+hC8qjsfyqkDLIZOfX9g==","signatures":[{"sig":"MEUCIHVgrtCM6V6cVkuPRGnYRrhlzcIMv3nXvyTVR/4z2D86AiEA8rhpKfivjpfvJEDMqyYkXQWEXocLfid86GPhB4/g2gw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86487},"main":"./dist/index.min.cjs","module":"./dist/index.min.mjs","exports":{".":{"import":"./dist/index.min.mjs","require":"./dist/index.min.cjs"}},"gitHead":"df690b0df6c45372cb41b7fa42003f08edc08bf5","scripts":{"lint":"eslint src","build":"rimraf dist && rollup -c && node scripts/build.js","build:example":"saber build example","prepublishOnly":"npm run build"},"_npmUser":{"name":"chawyehsu","email":"su+npm@chawyehsu.com"},"repository":{"url":"git+https://github.com/chawyehsu/saber.git","type":"git"},"_npmVersion":"10.7.0","description":"Generate Atom, RSS2, or JSON feed for your Saber app","directories":{},"_nodeVersion":"18.20.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"feed":"^4.2.2"},"peerDependencies":{"@alterjs/saber":"^0.13.0"},"_npmOperationalInternal":{"tmp":"tmp/saber-plugin-feed_0.13.0_1737181375046_0.6494273911337867","host":"s3://npm-registry-packages-npm-production"}},"0.13.1":{"name":"@alterjs/saber-plugin-feed","version":"0.13.1","description":"Generate Atom, RSS2, or JSON feed for your Saber app","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 && node scripts/build.js","build:example":"saber build example","lint":"eslint src","prepublishOnly":"npm run build"},"peerDependencies":{"@alterjs/saber":"^0.13.0"},"devDependencies":{"feed":"^4.2.2"},"publishConfig":{"access":"public"},"_id":"@alterjs/saber-plugin-feed@0.13.1","gitHead":"700711efc519ab1c22d73b2499cf0f492665961a","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-O/hr5OAYKOy6I7DD0eg6V+S2XXlKcpQYd8ODhuaw3OLxcjELh7+3JGvKxMyJ7F6283ovbm8Nin/1u+eYSu4Xjw==","shasum":"713f1679864cc2cf5c1d252093fc49fdbbd7e918","tarball":"https://registry.npmjs.org/@alterjs/saber-plugin-feed/-/saber-plugin-feed-0.13.1.tgz","fileCount":6,"unpackedSize":86526,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFzsYNQW5phAIW6Aj7u5c6dOaUJGXA5YJ30CSkAjJFbgAiEAxeu73cjVdZnZCFBDuPYP3PLktc7qpxY5saIz0NB+U8A="}]},"_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-feed_0.13.1_1737389010455_0.26028253818504243"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-16T14:33:36.455Z","modified":"2025-01-20T16:03:30.891Z","0.12.2":"2024-10-16T14:33:36.780Z","0.13.0":"2025-01-18T06:22:55.269Z","0.13.1":"2025-01-20T16:03:30.648Z"},"bugs":{"url":"https://github.com/chawyehsu/saber/issues"},"license":"MIT","homepage":"https://github.com/chawyehsu/saber#readme","repository":{"type":"git","url":"git+https://github.com/chawyehsu/saber.git"},"description":"Generate Atom, RSS2, or JSON feed for your Saber app","maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"readme":"# @alterjs/saber-plugin-feed\n\nGenerate feed in Atom 1.0 or RSS 2.0 or JSON format.\n\n## Install\n\n```bash\nyarn add @alterjs/saber-plugin-feed\n```\n\n## Usage\n\nIn your `saber-config.yml`:\n\n```yml\nplugins:\n  - resolve: '@alterjs/saber-plugin-feed'\n    options:\n      # Generate atom.xml\n      atomFeed: true\n      # Generate rss2.xml\n      rss2Feed: true\n      # Generate feed.json\n      jsonFeed: true\n```\n\n### Get Feed Links in Component\n\nThis plugin will also inject feed links as Vue computed property:\n\n```js\n// Recommended feed, atom > rss2 > json\nthis.$feed\n// { permalink: string, type: 'atom' | 'rss2' | 'json' }\n\nthis.$allFeeds\n// { rss2?: string, json?: string, atom?: string }\n```\n\n### Configure Feed Author\n\nIn your `saber-config.yml`:\n\n```yml\nsiteConfig:\n  author: Your Name # Optional\n  url: https://example.com # Required\n  email: you@email.com # Optional\n```\n\n## Options\n\n### atomFeed\n\n- Type: `string` `boolean`\n- Default: `undefined`\n\nThe output path of the Atom feed, when `true` it outputs to `atom.xml`.\n\n### rss2Feed\n\n- Type: `string` `boolean`\n- Default: `undefined`\n\nThe output path of the RSS2 feed, when `true` it outputs to `rss2.xml`.\n\n### jsonFeed\n\n- Type: `string` `boolean`\n- Default: `undefined`\n\nThe output path of the JSON feed, when `true` it outputs to `feed.json`.\n\n### limit\n\n- Type: `number`\n- Default: `30`\n\nThe maximum amount of posts to include in the feed.\n\n### copyright\n\n- Type: `string`\n- Default: `All rights reserved`\n\nThe copyright info in the feed.\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}