{"id":15690609,"url":"https://github.com/linusu/utc-version","last_synced_at":"2025-05-07T23:46:17.660Z","repository":{"id":57388945,"uuid":"118470494","full_name":"LinusU/utc-version","owner":"LinusU","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-24T07:27:16.000Z","size":69,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:46:06.911Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinusU.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-22T14:47:55.000Z","updated_at":"2025-03-15T20:58:56.000Z","dependencies_parsed_at":"2022-08-22T14:50:56.501Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/utc-version","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Futc-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Futc-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Futc-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Futc-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/utc-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973618,"owners_count":21834105,"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-10-03T18:12:44.855Z","updated_at":"2025-05-07T23:46:17.643Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UTC Version\n\nReturn a version string based on the current date and time. If you prefer automatically generating date-only versions based on your latest git tag, try [daily-version](https://github.com/fregante/daily-version).\n\n## Installation\n\n```sh\nnpm intall --save utc-version\n```\n\n## Usage\n\nJavaScript:\n\n```js\nconst utcVersion = require('utc-version')\n\nconsole.log(utcVersion())\n//=\u003e 18.1.22.1441\n\nconsole.log(utcVersion({ apple: true }))\n//=\u003e 18.1.22i157\n\nconsole.log(utcVersion({ short: true }))\n//=\u003e 18.1.22\n```\n\nShell:\n\n```sh\n$ utc-version\n18.1.22.1441\n\n$ utc-version --apple\n18.1.22i157\n\n$ utc-version --short\n18.1.22\n```\n\n## API\n\n### `utcVersion([date], [options]) =\u003e string`\n\nReturn a version string based on the `Date`-object passed in. If no time is given, the current time is used.\n\nIf `options.apple` is truthy, the version string will be compatible with Apples restrictions on `CFBundleVersion`. The format will be `year.month.day` followed by `i` and a number between 1 and 255 inclusively. The `i` number is increased rughly every 5 minutes and 39 seconds.\n\nIf `options.short` is truthy, the format will be `year.month.day`, without seconds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Futc-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Futc-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Futc-version/lists"}