A simple web component that displays the current year.
You can install the package via npm (or compatible package managers):
npm install @jop-software/current-yearOr include it directly in your HTML via a CDN:
<script type="module" src="https://cdn.jsdelivr.net/npm/@jop-software/current-year/dist/index.mjs"></script>When using a build system like Vite or tools like Astro, you need do import the package as follows:
import "@jop-software/current-year";After that or when using the CDN version, the <current-year> web component will be available for use in your HTML and can be used like this:
<footer>
<p>© <current-year></current-year></p>
</footer>To build the project locally, clone the repository and run:
pnpm install
pnpm buildpnpm publish --access publicThis project is licensed under the MIT License. See the LICENSE file for details.
Created by jop-software Inh. Johannes Przymusinski