{"id":21401425,"url":"https://github.com/spoonx/to-age","last_synced_at":"2025-07-14T16:34:48.698Z","repository":{"id":65473336,"uuid":"54325205","full_name":"SpoonX/to-age","owner":"SpoonX","description":"An extremely simple module that converts a date to an age.","archived":false,"fork":false,"pushed_at":"2016-03-20T15:50:11.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T22:18:28.986Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpoonX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-20T15:30:48.000Z","updated_at":"2016-10-29T20:08:00.000Z","dependencies_parsed_at":"2023-01-25T03:05:11.255Z","dependency_job_id":null,"html_url":"https://github.com/SpoonX/to-age","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SpoonX/to-age","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Fto-age","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Fto-age/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Fto-age/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Fto-age/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpoonX","download_url":"https://codeload.github.com/SpoonX/to-age/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Fto-age/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265319495,"owners_count":23746361,"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-22T15:27:42.522Z","updated_at":"2025-07-14T16:34:48.674Z","avatar_url":"https://github.com/SpoonX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# to-age\nAn extremely simple module that converts a date to an age.\n\n\u003e $ toAge('1991-04-24'); // 24 (at time of writing)\n\n## Installing\n\n`npm i to-age --save`\n\n## Usage\n\n```js\nvar toAge = require ('to-age');\n\n// From an instance\ntoAge(new Date(1991, 4, 24));\n\n// From a string\ntoAge('1991-04-24');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoonx%2Fto-age","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspoonx%2Fto-age","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoonx%2Fto-age/lists"}