{"id":19237188,"url":"https://github.com/falm/number-timeago","last_synced_at":"2025-10-03T13:21:05.625Z","repository":{"id":57287812,"uuid":"59279801","full_name":"falm/number-timeago","owner":"falm","description":"A number timeago package support 2..years.ago() method","archived":false,"fork":false,"pushed_at":"2016-09-03T02:01:42.000Z","size":115,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T09:15:58.795Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/falm.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":"2016-05-20T08:54:24.000Z","updated_at":"2021-11-09T10:43:59.000Z","dependencies_parsed_at":"2022-09-15T11:04:51.973Z","dependency_job_id":null,"html_url":"https://github.com/falm/number-timeago","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/falm%2Fnumber-timeago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/falm%2Fnumber-timeago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/falm%2Fnumber-timeago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/falm%2Fnumber-timeago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/falm","download_url":"https://codeload.github.com/falm/number-timeago/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250002321,"owners_count":21359094,"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-11-09T16:25:15.086Z","updated_at":"2025-10-03T13:21:00.607Z","avatar_url":"https://github.com/falm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# number-timeago [![Build Status](https://travis-ci.org/falm/number-timeago.svg?branch=master)](https://travis-ci.org/falm/number-timeago)\n\u003e A number timeago package support 2..years.ago() method\n\n## Install\n```bash\n$ npm install number-timeago\n```\nIt's also available on NPMCDN https://unpkg.com/number-timeago@0.1.1/number.timeago.js\n\n## Usage\n**Node.js CommonJS**\n```js\nrequire(\"number-timeago\")();\n```\n**AMD**\n```js\nrequire(['number-timeago'], function (NumberTimeAgo) {\n  NumberTimeAgo();\n});  \n```\nthen\n\n```js\n// seconds\n20..seconds // =\u003e 20,000 milliseconds\n// minutes\n10..minutes // =\u003e 600,000 milliseconds\n// weeks, days, months, years so on\n\n// time ago\n2..months.ago() // will return 2 months ago Date object\n// =\u003e Mon Mar 28 2016 11:46:07 GMT+0800 (CST)\n```\n\n## License\n\nMIT © [Falm](https://github.com/falm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalm%2Fnumber-timeago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffalm%2Fnumber-timeago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalm%2Fnumber-timeago/lists"}