{"id":21074793,"url":"https://github.com/dawsbot/rainge","last_synced_at":"2025-05-16T06:31:29.336Z","repository":{"id":141648014,"uuid":"54062911","full_name":"dawsbot/rainge","owner":"dawsbot","description":"Make copyright's great again","archived":false,"fork":false,"pushed_at":"2018-03-01T23:09:08.000Z","size":54,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-03T06:10:01.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/dawsbot.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/contributing.md","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":"2016-03-16T20:07:56.000Z","updated_at":"2024-08-12T19:21:56.000Z","dependencies_parsed_at":"2023-07-01T16:20:59.273Z","dependency_job_id":null,"html_url":"https://github.com/dawsbot/rainge","commit_stats":null,"previous_names":["dawsonbotsford/rainge"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Frainge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Frainge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Frainge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawsbot%2Frainge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dawsbot","download_url":"https://codeload.github.com/dawsbot/rainge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225411493,"owners_count":17470246,"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":"2024-11-19T19:18:01.284Z","updated_at":"2024-11-19T19:18:01.916Z","avatar_url":"https://github.com/dawsbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rainge\n[![npm version](https://img.shields.io/npm/v/rainge.svg)](https://www.npmjs.com/package/rainge)\n[![npm download count](http://img.shields.io/npm/dm/rainge.svg?style=flat)](http://npmjs.org/rainge)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n\n  \u003ctable\u003e\n    \u003cthead\u003e\n      \u003ctr\u003e\n        \u003cth\u003eLinux \u0026 OSX\u003c/th\u003e\n        \u003cth\u003eWindows\u003c/th\u003e\n      \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n        \u003ctd align=\"center\"\u003e\n          \u003ca href=\"https://travis-ci.org/dawsbot/rainge\"\u003e\u003cimg src=\"https://api.travis-ci.org/dawsbot/rainge.svg?branch=master\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\n          \u003ca href=\"https://ci.appveyor.com/project/dawsonbotsford/rainge\"\u003e\u003cimg src=\"https://ci.appveyor.com/api/projects/status/1qjrnuj1tni0osli?svg=true\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n  \u003c/table\u003e\n\n\u003e Use date ranges that never need updating\n\n\u003cbr\u003e\n\n## Install\n\n```\nnpm install --save rainge\n```\n\n\u003cbr\u003e\n\n## Usage\n\n#### Node\n\n```js\nconst rainge = require('rainge');\n\n// assuming the current year is 2018:\nrainge(2018);\n//=\u003e '2018'\n\nrainge(2009);\n//=\u003e '2009 - 2018'\n```\n\n\u003cbr\u003e\n\n#### Web\n\n```html\n\u003cscript src=\"https://unpkg.com/rainge/bundle.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  alert('\\u00A9 ' + rainge(1999));\n  //=\u003e © 1999 - 2018\n\u003c/script\u003e\n```\n\n\u003cbr\u003e\n\nOr download it with `npm install --save rainge` and reference it as:\n\n```html\n\u003cscript src=\"node_modules/rainge/bundle.js\"\u003e\u003c/script\u003e\n```\n\n\u003cbr\u003e\n\n## About\n\nI was tired of seeing websites in 2016 that said\n\u003e © 2015\n\nor even worse\n\u003e© 2012 - 2014\n\nUsing `rainge`, you set your copyright year once and it will **automatically change year-to-year**. `rainge(2016)` would return `\"2016\"` until 2017, at which point `rainge(2016)` would return `\"2016 - 2017\"`\n\n\u003cbr\u003e\n\n## API\n\n### rainge(startYear)\n\n##### startYear\n\nType: `string` || `number`\n\n#### returns\n\nType: `string`\n\n\u003cbr\u003e\n\n## Related\n\n* [updateyourfooter.com](http://updateyourfooter.com/)\n\n\u003cbr\u003e\n\n## License\n\nMIT © [Dawson Botsford](https://dawsbot.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawsbot%2Frainge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdawsbot%2Frainge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawsbot%2Frainge/lists"}