{"id":21837814,"url":"https://github.com/mareksuscak/timeago","last_synced_at":"2026-04-19T06:32:46.973Z","repository":{"id":46879022,"uuid":"129559931","full_name":"mareksuscak/timeago","owner":"mareksuscak","description":"📅 A byte-sized library for displaying a human-readable relative time.","archived":false,"fork":false,"pushed_at":"2023-01-12T06:29:46.000Z","size":285,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-21T15:16:11.022Z","etag":null,"topics":["date","library","micro","time"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/mareksuscak.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}},"created_at":"2018-04-14T22:47:26.000Z","updated_at":"2023-06-19T08:09:18.000Z","dependencies_parsed_at":"2023-02-09T10:31:02.516Z","dependency_job_id":null,"html_url":"https://github.com/mareksuscak/timeago","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mareksuscak/timeago","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mareksuscak%2Ftimeago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mareksuscak%2Ftimeago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mareksuscak%2Ftimeago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mareksuscak%2Ftimeago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mareksuscak","download_url":"https://codeload.github.com/mareksuscak/timeago/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mareksuscak%2Ftimeago/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259686088,"owners_count":22896051,"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":["date","library","micro","time"],"created_at":"2024-11-27T20:48:49.912Z","updated_at":"2026-04-19T06:32:41.928Z","avatar_url":"https://github.com/mareksuscak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# timeAgo [![CircleCI Status](https://circleci.com/gh/chute/timeago.svg?style=shield\u0026circle-token=:circle-token)](https://circleci.com/gh/chute/timeago) [![npm version](https://badge.fury.io/js/%40chute%2Ftimeago.svg)](https://badge.fury.io/js/%40chute%2Ftimeago)\n\nA byte-sized library for displaying a human-readable relative time. Produces the same output as [Moment's](http://momentjs.com/) `fromNow` and `toNow` except it comes in a much smaller package.\n\n## Installation\n\n```sh\n# NPM\nnpm install @chute/timeago --save\n\n# Yarn\nyarn add @chute/timeago\n```\n\n## Usage\n\n```js\n// Common.js \u0026 AMD\nvar timeAgo = require('@chute/timeago')\n\n// ES modules\nimport timeAgo from '@chute/timeago'\n\n// Browser Global\n// \u003cscript src=\"https://unpkg.com/@chute/timeago\"\u003e\n\n// Usage\ntimeAgo()                       // uses current date\ntimeAgo(new Date())             // explicitly passing current date\ntimeAgo(1491953789490)          // explicitly passing a unix timestamp\ntimeAgo('2017-04-11T23:36:46Z') // explicitly passing an ISO8601 date string\n```\n\n## Tests\n\n```sh\n# CI server\nnpm test\n\n# Development\nnpm test -- --watch\n```\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style.\nAdd unit tests for any new or changed functionality. Lint and test your code.\n\n## Release History\n\n* 1.0.0 Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmareksuscak%2Ftimeago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmareksuscak%2Ftimeago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmareksuscak%2Ftimeago/lists"}