{"id":22505159,"url":"https://github.com/azer/relative-date","last_synced_at":"2025-04-12T23:00:25.012Z","repository":{"id":55094647,"uuid":"1457159","full_name":"azer/relative-date","owner":"azer","description":"Javascript module for outputting relative dates.","archived":false,"fork":false,"pushed_at":"2021-01-11T04:11:28.000Z","size":8,"stargazers_count":81,"open_issues_count":1,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T07:06:18.489Z","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":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-03-09T00:36:33.000Z","updated_at":"2024-09-08T22:19:03.000Z","dependencies_parsed_at":"2022-08-14T11:50:17.743Z","dependency_job_id":null,"html_url":"https://github.com/azer/relative-date","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Frelative-date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Frelative-date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Frelative-date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azer%2Frelative-date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azer","download_url":"https://codeload.github.com/azer/relative-date/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643016,"owners_count":21138353,"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-12-07T00:15:30.299Z","updated_at":"2025-04-12T23:00:24.965Z","avatar_url":"https://github.com/azer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Javascript module for outputting relative dates. Tested platforms: Node, Firefox 3.6, Chromium 8.0\n\nInstall\n=======\nnpm install relative-date\n\nUsage\n=====\nOn browsers:\n\n```js\n\u003cscript src=\"relative-date.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  assert( relativeDate(new Date()), 'just now' );\n  assert( relativeDate(1299627946000), '12 minutes ago');\n  assert( relativeDate(0), '41 years ago');\n\u003c/script\u003e\n```\n\nOn a CommonJS compliant environment:\n\n```js\n\u003e var relativeDate = require('relative-date');\n\u003e relativeDate(new Date())\n'just now'\n\u003e relativeDate(1299627946000)\n'12 minutes ago'\n\u003e relativeDate(0)\n'41 years ago'\n```\n    \nTesting\n=======\nnode test/node.js || test/browser.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Frelative-date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazer%2Frelative-date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazer%2Frelative-date/lists"}