{"id":15369286,"url":"https://github.com/developit/neatime","last_synced_at":"2025-06-30T01:33:16.636Z","repository":{"id":35849294,"uuid":"40133297","full_name":"developit/neatime","owner":"developit","description":"Returns a simple relative time string.","archived":false,"fork":false,"pushed_at":"2017-05-17T06:35:13.000Z","size":3,"stargazers_count":30,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T20:01:17.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/developit.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}},"created_at":"2015-08-03T15:45:15.000Z","updated_at":"2023-09-25T07:40:43.000Z","dependencies_parsed_at":"2022-09-12T10:30:20.318Z","dependency_job_id":null,"html_url":"https://github.com/developit/neatime","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/developit/neatime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fneatime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fneatime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fneatime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fneatime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/neatime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fneatime/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386865,"owners_count":23150877,"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-10-01T13:35:00.553Z","updated_at":"2025-06-30T01:33:16.609Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"neatime [![npm]](http://npm.im/neatime) [![bower]](http://bower.io/search/?q=neatime) [![travis]](https://travis-ci.org/developit/neatime)\n=======\n\nReturns a simple relative time string.\n\n\nUsage Examples\n--------------\n\n\n```js\n// within the last minute\nneatime(new Date()-1e4) == 'Just now'\n\n// within the last hour\nneatime(Date.now()-1e6) == '16m'\n\n// within the last hour\nneatime(Date.now()-1e7) == '2h'\n\n// within the last 7 days\nneatime('Dec 31, 2014') == '4d'\n\n// over 7 days ago gives a simple date\nneatime('July 20, 2015') == 'Jul 20'\n\n// over half a year ago adds the year\nneatime('July 4, 2014') == 'Jul 4, 2014'\n```\n\n\nLicense\n-------\n\nWTFPL\n\n\n[npm]: https://img.shields.io/npm/v/neatime.svg\n[bower]: https://img.shields.io/bower/v/neatime.svg\n[travis]: https://img.shields.io/travis/developit/neatime.svg\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fneatime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fneatime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fneatime/lists"}