{"id":15506003,"url":"https://github.com/themojilla/rago","last_synced_at":"2025-04-23T01:55:09.221Z","repository":{"id":65478978,"uuid":"257561369","full_name":"themojilla/rago","owner":"themojilla","description":"A utility helper to calculate \"time ago\" or \"from now \"  in a readable format using Intl API","archived":false,"fork":false,"pushed_at":"2023-10-06T14:31:02.000Z","size":269,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T01:55:01.606Z","etag":null,"topics":["dayjs","fromnow","intl","intl-api","javascript","momentjs","relative-time"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/themojilla.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-21T10:35:57.000Z","updated_at":"2023-08-05T20:19:43.000Z","dependencies_parsed_at":"2025-03-04T20:31:37.488Z","dependency_job_id":null,"html_url":"https://github.com/themojilla/rago","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themojilla%2Frago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themojilla%2Frago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themojilla%2Frago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themojilla%2Frago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themojilla","download_url":"https://codeload.github.com/themojilla/rago/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250354301,"owners_count":21416751,"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":["dayjs","fromnow","intl","intl-api","javascript","momentjs","relative-time"],"created_at":"2024-10-02T09:25:09.809Z","updated_at":"2025-04-23T01:55:09.198Z","avatar_url":"https://github.com/themojilla.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rago\n\nA utility helper to calculate \"time ago\" or \"from now \" in a readable format using Intl API. [![npm version](https://badge.fury.io/js/rago.svg)](https://badge.fury.io/js/rago)\n\n\u003e Warning: the `rago` tend to use Intl API internally. It is made for modern browsers, but if you want to keep things also working for older ones, make sure to polyfill the Intl API\n\n## Installation\n\n```bash\nyarn add rago\n```\n\n## Usage\n\n```javascript\nimport { fromNow } from 'rago';\n\nfromNow('2019-04-21T11:34:41.773Z'); // 2 years ago\nfromNow('2020-04-21T12:24:01Z', 'fa'); // سال گذشته\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemojilla%2Frago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemojilla%2Frago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemojilla%2Frago/lists"}