{"id":20817007,"url":"https://github.com/miteshtagadiya/react-timesago","last_synced_at":"2026-07-04T11:31:16.933Z","repository":{"id":57346436,"uuid":"182939200","full_name":"miteshtagadiya/React-TimesAgo","owner":"miteshtagadiya","description":"A component that takes a date as a prop and returns a time-span with live updating date.","archived":false,"fork":false,"pushed_at":"2024-04-23T01:43:00.000Z","size":489,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-23T03:51:44.628Z","etag":null,"topics":["react-time-range","react-timeago","react-times","time-spans","timesago-react"],"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/miteshtagadiya.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-04-23T05:25:37.000Z","updated_at":"2024-04-23T03:51:44.628Z","dependencies_parsed_at":"2024-11-17T21:38:47.388Z","dependency_job_id":"b338a4f8-07ed-46c0-a0fc-43a89d85d512","html_url":"https://github.com/miteshtagadiya/React-TimesAgo","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/miteshtagadiya%2FReact-TimesAgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miteshtagadiya%2FReact-TimesAgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miteshtagadiya%2FReact-TimesAgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miteshtagadiya%2FReact-TimesAgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miteshtagadiya","download_url":"https://codeload.github.com/miteshtagadiya/React-TimesAgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165501,"owners_count":20246722,"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":["react-time-range","react-timeago","react-times","time-spans","timesago-react"],"created_at":"2024-11-17T21:38:44.571Z","updated_at":"2026-07-04T11:31:16.926Z","avatar_url":"https://github.com/miteshtagadiya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## React-TimesAgo\n\n[![npm](https://img.shields.io/npm/v/react-timesago.svg)](https://www.npmjs.com/package/react-timesago)\n[![npm](https://img.shields.io/npm/dm/react-timesago.svg)](https://www.npmjs.com/package/react-timesago) \n[![npm](https://img.shields.io/npm/dw/react-timesago.svg)](https://www.npmjs.com/package/react-timesago)\n![npm](https://img.shields.io/npm/l/react-timesago.svg)\n\nReact-TimesAgo is a component that takes a date as a prop and returns a time-span with live updating date.\n\n## Demo\n[React-TimesAgo](https://miteshtagadiya.github.io/React-TimesAgo/)\n\n## Installation\n\n1.  Install React-TimesAgo as a dependency\n\n```markdown\n# NPM\nnpm install react-timesago\n```\n\n2.  Import the `react-timesago` module\n\n```markdown\n// ES6\nimport TimesAgo from \"react-timesago\";\n```\n\n## Example\n```jsx\nimport TimesAgo from 'react-timesago';\n\nrender() {\n\u003cTimesAgo time={date} type=\"default\" suffix=\"ago\" /\u003e // type default\n\u003cTimesAgo time={date} type=\"default\" prefix=\"before\" /\u003e // type default\n\u003cTimesAgo time={date} type=\"facebook\" /\u003e // type facebook\n}\n```\n## Props\n\nThese are all of the available props (and their default values) for the `\u003cTimesAgo /\u003e` component.\n```markdown\n{\n    prefix: \"\",\n    suffix: \"ago\",\n    type: \"default\",\n    time: new Date(1551788578911 * 1000)\n}\n```\n\n## Props Details\n\n* `prefix` - formatter prefix for date, ignored for type facebook.\n* `suffix` - formatter suffix for date, ignored for type facebook.\n* `type` - types for date format (facebook or default)\n* `time` - date.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiteshtagadiya%2Freact-timesago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiteshtagadiya%2Freact-timesago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiteshtagadiya%2Freact-timesago/lists"}