{"id":24461296,"url":"https://github.com/frontend-layers/get-year","last_synced_at":"2025-03-14T09:44:13.740Z","repository":{"id":271786956,"uuid":"914564475","full_name":"Frontend-Layers/get-year","owner":"Frontend-Layers","description":"Insert current year into any HTML element by CDN script","archived":false,"fork":false,"pushed_at":"2025-01-09T21:04:49.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T04:18:56.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Frontend-Layers.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-09T21:03:45.000Z","updated_at":"2025-01-09T21:04:53.000Z","dependencies_parsed_at":"2025-01-09T22:21:36.489Z","dependency_job_id":"d8e74af0-9018-4582-90c9-e4a471b76b20","html_url":"https://github.com/Frontend-Layers/get-year","commit_stats":null,"previous_names":["frontend-layers/get-year"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontend-Layers%2Fget-year","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontend-Layers%2Fget-year/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontend-Layers%2Fget-year/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontend-Layers%2Fget-year/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frontend-Layers","download_url":"https://codeload.github.com/Frontend-Layers/get-year/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243558466,"owners_count":20310572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-21T04:18:51.809Z","updated_at":"2025-03-14T09:44:13.708Z","avatar_url":"https://github.com/Frontend-Layers.png","language":"JavaScript","readme":"# Get Year\n\nInsert current year into any HTML element by CDN script\n\n---\n## Features\n\n- Works instantly via CDN \u003cscript\u003e tag\n- Config through `data-get-year` attribute\n- Supports default `.current-year` class\n\n---\n\n## Usage\n\n```html\n\u003cspan class=\"current-year\"\u003e\u003c/span\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/get-year\"\u003e\u003c/script\u003e\n```\n\n## Extended Configuration\n\n```html\n\u003cdiv data-get-year=\".footer-year\"\u003e\u003c/div\u003e\n```\n\n**Parameters:**\n\n`data-get-year=\"[selector]\"`\n\n- Optional parameter: CSS selector to target other elements\n- If empty, updates the element itself\n\n---\n\n### Example Implementation\n\n```html\n\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003ctitle\u003eGet Year Example\u003c/title\u003e\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/get-year\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003c!-- Basic usage --\u003e\n    Copyright © \u003cspan class=\"current-year\"\u003e\u003c/span\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n\n```\n\n---\n\n## License\n\nMIT License\n\n---\n\n## Contributing\n\nContributions welcome! Feel free to:\n\n- Fork the repository\n- Submit pull requests\n- File issues\n- Suggest improvements\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontend-layers%2Fget-year","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrontend-layers%2Fget-year","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontend-layers%2Fget-year/lists"}