{"_id":"@8hobbies/vite-plugin-year","_rev":"2-75b4cc0ebbecf390686ee8f263f2efdc","name":"@8hobbies/vite-plugin-year","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@8hobbies/vite-plugin-year","version":"1.0.0","keywords":["vite"],"author":{"name":"8 Hobbies, LLC"},"license":"0BSD","_id":"@8hobbies/vite-plugin-year@1.0.0","maintainers":[{"name":"8hobbies-bot","email":"contact@8hobbies.com"},{"name":"hong-xu","email":"hong@topbug.net"}],"homepage":"https://github.com/8hobbies/vite-plugin-year#readme","bugs":{"url":"https://github.com/8hobbies/vite-plugin-year/issues"},"dist":{"shasum":"9e1a10b603579f58b146f342a23bd713b9ee93ae","tarball":"https://registry.npmjs.org/@8hobbies/vite-plugin-year/-/vite-plugin-year-1.0.0.tgz","fileCount":5,"integrity":"sha512-ESeFEh6R+TcN29JmxZLo2x5rkPwb0gbwgfcpDHP4mt2PXqMMzd/ovYpsQ++TCJP92IydO8NwcSItFNpLnQeHHA==","signatures":[{"sig":"MEUCIBlf2ai6YPES1RVvgVlchxfoz5+sGhzVSbJGe8GJCwYBAiEAowVvQZuoD/lNR50GTQDk2W/zqoxh4jLihHwq18AFFps=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6183},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":"^18 || ^20 || ^22 || >= 23"},"gitHead":"ecc8a0bfd83498a3624e0455d400c9761ba4dcbe","scripts":{"lint":"npm run compile && eslint --report-unused-disable-directives --max-warnings=0 *.ts *.mjs && prettier . --check","test":"vitest --run","clean":"rimraf dist/","format":"npm run compile && eslint --fix *.ts *.mjs && prettier . --write","compile":"tsc --project tsconfig.json && tsc --project tsconfig.test.json","prepack":"npm run clean && npm run compile"},"_npmUser":{"name":"hong-xu","email":"hong@topbug.net"},"repository":{"url":"git+https://github.com/8hobbies/vite-plugin-year.git","type":"git"},"_npmVersion":"10.9.0","description":"A Vite plugin that inserts the current year to the html file during build. Useful for adding a copyright year.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^2.1.5","globals":"^15.12.0","prettier":"^3.3.3","typescript":"~5.6.3","@types/jest":"^29.5.14","@types/node":"^22.9.0","@types/eslint":"^9.6.1","@types/eslint__js":"^8.42.3","@8hobbies/eslint-conf-baseline":"^6.0.0"},"peerDependencies":{"eslint":"^9.14.0","typescript-eslint":"^8.13.0","@typescript-eslint/utils":"^8.13.0","@typescript-eslint/eslint-plugin":"^8.13.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-year_1.0.0_1731540402697_0.818568681236636","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@8hobbies/vite-plugin-year","version":"1.0.1","keywords":["vite","vite-plugin"],"author":{"name":"8 Hobbies, LLC"},"license":"0BSD","_id":"@8hobbies/vite-plugin-year@1.0.1","maintainers":[{"name":"8hobbies-bot","email":"contact@8hobbies.com"},{"name":"hong-xu","email":"hong@topbug.net"}],"homepage":"https://github.com/8hobbies/vite-plugin-year#readme","bugs":{"url":"https://github.com/8hobbies/vite-plugin-year/issues"},"dist":{"shasum":"922ab32dfe5f004100b5bf18ecf75b7ff5638616","tarball":"https://registry.npmjs.org/@8hobbies/vite-plugin-year/-/vite-plugin-year-1.0.1.tgz","fileCount":5,"integrity":"sha512-4hTv9zUq+NkG3oY6T05RMp7cpUKygncYd+H435XuGhRjgN7+oZf4Z5Mwkj/dkVt1bA1/By2+6rjlrPGzknqf7g==","signatures":[{"sig":"MEUCICWLlGJqKuovJkGOiayfZFSYG6bgfc6i+BAnFTnnLXERAiEA3v3wbsXBfIgXHdmN1mgunee0+LLEK7ROpCxiodIQdWE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6388},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":"^18 || ^20 || ^22 || >= 23"},"gitHead":"4ccb6526d6a716034ef0bafcf722573b933a606e","scripts":{"lint":"npm run compile && eslint --report-unused-disable-directives --max-warnings=0 *.ts *.mjs && prettier . --check","test":"vitest --run","clean":"rimraf dist/","format":"npm run compile && eslint --fix *.ts *.mjs && prettier . --write","compile":"tsc --project tsconfig.json && tsc --project tsconfig.test.json","prepack":"npm run clean && npm run compile"},"_npmUser":{"name":"8hobbies-bot","email":"contact@8hobbies.com"},"repository":{"url":"git+https://github.com/8hobbies/vite-plugin-year.git","type":"git"},"_npmVersion":"10.9.0","description":"A Vite plugin that inserts the current year to the HTML file during build. Useful for adding a copyright year to the HTML file.","directories":{},"_nodeVersion":"22.10.0","_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^2.1.5","globals":"^15.12.0","prettier":"^3.3.3","typescript":"~5.6.3","@types/jest":"^29.5.14","@types/node":"^22.9.0","@types/eslint":"^9.6.1","@types/eslint__js":"^8.42.3","@8hobbies/eslint-conf-baseline":"^6.0.0"},"peerDependencies":{"eslint":"^9.14.0","typescript-eslint":"^8.13.0","@typescript-eslint/utils":"^8.13.0","@typescript-eslint/eslint-plugin":"^8.13.0"},"_npmOperationalInternal":{"tmp":"tmp/vite-plugin-year_1.0.1_1731541711709_0.13706558931203627","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@8hobbies/vite-plugin-year","version":"1.0.2","description":"A Vite plugin that inserts the current year to the HTML file during build. Useful for adding a copyright year to the HTML file.","main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":"^18 || ^20 || ^22 || >= 23"},"scripts":{"clean":"rimraf dist/","compile":"tsc --project tsconfig.json && tsc --project tsconfig.test.json","format":"npm run compile && eslint --fix *.ts *.mjs && prettier . --write","lint":"npm run compile && eslint --report-unused-disable-directives --max-warnings=0 *.ts *.mjs && prettier . --check","prepack":"npm run clean && npm run compile","test":"vitest --run"},"repository":{"type":"git","url":"git+https://github.com/8hobbies/vite-plugin-year.git"},"keywords":["vite","vite-plugin"],"author":{"name":"8 Hobbies, LLC"},"license":"0BSD","bugs":{"url":"https://github.com/8hobbies/vite-plugin-year/issues"},"homepage":"https://8hob.io/posts/add-copyright-year-vite-html/","devDependencies":{"@8hobbies/eslint-conf-baseline":"^6.0.0","@types/eslint":"^9.6.1","@types/eslint__js":"^8.42.3","@types/jest":"^29.5.14","@types/node":"^22.9.0","globals":"^15.12.0","prettier":"^3.3.3","rimraf":"^6.0.1","typescript":"~5.6.3","vitest":"^2.1.5"},"peerDependencies":{"@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/utils":"^8.13.0","eslint":"^9.14.0","typescript-eslint":"^8.13.0"},"_id":"@8hobbies/vite-plugin-year@1.0.2","gitHead":"26228eb0ff28fcd9b5ae81c2080bdc9b3d096703","_nodeVersion":"22.10.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-pz3ewN9VutFbgHb1nl35YZBFTzNmwe4VtaW8w/SyIZyegV7x1VOA4oOOufrEiqY6hJ5KSXv4gwXiuWUaBzyy6w==","shasum":"936ea384afdbff61f5de9c279eb3df7c3bdca360","tarball":"https://registry.npmjs.org/@8hobbies/vite-plugin-year/-/vite-plugin-year-1.0.2.tgz","fileCount":5,"unpackedSize":6397,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1yVbxvNpyVkhdwquDPojqZYytE2j42RCot9Tw54iDvQIhALvHo8ueIf+up+gVkVJKetC7b1IBXTchbDIuXvWaM/4Q"}]},"_npmUser":{"name":"8hobbies-bot","email":"contact@8hobbies.com"},"directories":{},"maintainers":[{"name":"8hobbies-bot","email":"contact@8hobbies.com"},{"name":"hong-xu","email":"hong@topbug.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-year_1.0.2_1731551324224_0.4210001366679279"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-13T23:26:42.561Z","modified":"2024-11-14T02:28:44.652Z","1.0.0":"2024-11-13T23:26:42.942Z","1.0.1":"2024-11-13T23:48:31.909Z","1.0.2":"2024-11-14T02:28:44.438Z"},"bugs":{"url":"https://github.com/8hobbies/vite-plugin-year/issues"},"author":{"name":"8 Hobbies, LLC"},"license":"0BSD","homepage":"https://8hob.io/posts/add-copyright-year-vite-html/","keywords":["vite","vite-plugin"],"repository":{"type":"git","url":"git+https://github.com/8hobbies/vite-plugin-year.git"},"description":"A Vite plugin that inserts the current year to the HTML file during build. Useful for adding a copyright year to the HTML file.","maintainers":[{"name":"8hobbies-bot","email":"contact@8hobbies.com"},{"name":"hong-xu","email":"hong@topbug.net"}],"readme":"# vite-plugin-year\n\n[![npm version](https://badge.fury.io/js/@8hobbies%2Fvite-plugin-year.svg)](https://badge.fury.io/js/@8hobbies%2Fvite-plugin-year)\n\n[GitLab](https://gitlab.com/8hobbies/vite-plugin-year) | [GitHub](https://github.com/8hobbies/vite-plugin-year)\n\nA [Vite][] plugin that inserts the current year to the html file during build. Useful for adding a\ncopyright year to the HTML file.\n\n## Usage\n\nInstall with\n\n```sh\nnpm install --save-dev '@8hobbies/vite-plugin-year'\n```\n\nIn `vite.config.ts`, add:\n\n```typescript\nimport yearPlugin from \"@8hobbies/vite-plugin-year\";\n\n// ...\n\nexport default defineConfig({\n  // ...\n\n  plugins: [\n    // ...\n    yearPlugin(),\n  ],\n});\n```\n\nIn `index.html`, add:\n\n```html\n<footer><p>Copyright &copy; __YEAR__ My Name</p></footer>\n```\n\nUpon build, this plugin replaces `__YEAR__` with the current year.\n\n## Contributing\n\nSource code is available on [GitHub][source code].\n\nTo report a bug, visit the [issue tracker][].\n\nTo run test, run `npm run test`. To build for production, run `npm pack`.\n\nTo send your contribution, open a [pull request][].\n\n## License\n\n```\nCopyright (C) 2024 8 Hobbies, LLC <hong@8hobbies.com>\n\nPermission to use, copy, modify, and/or distribute this software for anypurpose with or without\nfee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIESWITH REGARD TO THIS\nSOFTWARE INCLUDING ALL IMPLIED WARRANTIES OFMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE\nAUTHOR BE LIABLE FORANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY\nDAMAGESWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ANACTION OF CONTRACT,\nNEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OFOR IN CONNECTION WITH THE USE OR PERFORMANCE\nOF THIS SOFTWARE.\n```\n\n[Vite]: https://vite.dev\n[issue tracker]: https://github.com/8hobbies/vite-plugin-year/issues\n[pull request]: https://github.com/8hobbies/vite-plugin-year/pulls\n[source code]: https://github.com/8hobbies/vite-plugin-year\n","readmeFilename":"README.md"}