{"id":15217912,"url":"https://github.com/oskarrough/ember-date-fns","last_synced_at":"2025-10-30T04:31:21.451Z","repository":{"id":57223685,"uuid":"78587863","full_name":"oskarrough/ember-date-fns","owner":"oskarrough","description":"Date helpers for Ember.js using date-fns","archived":false,"fork":false,"pushed_at":"2019-02-18T16:53:43.000Z","size":269,"stargazers_count":19,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T19:12:39.700Z","etag":null,"topics":["date-formatting","ember"],"latest_commit_sha":null,"homepage":"https://ember-date-fns.surge.sh/","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/oskarrough.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-11T00:37:59.000Z","updated_at":"2024-05-30T02:56:30.000Z","dependencies_parsed_at":"2022-08-30T02:10:33.192Z","dependency_job_id":null,"html_url":"https://github.com/oskarrough/ember-date-fns","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fember-date-fns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fember-date-fns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fember-date-fns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fember-date-fns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oskarrough","download_url":"https://codeload.github.com/oskarrough/ember-date-fns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238934083,"owners_count":19554788,"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-formatting","ember"],"created_at":"2024-09-28T12:07:31.024Z","updated_at":"2025-10-30T04:31:16.118Z","avatar_url":"https://github.com/oskarrough.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember date-fns\n\n[![npm version](https://badge.fury.io/js/ember-date-fns.svg)](https://badge.fury.io/js/ember-date-fns)\n[![CircleCI](https://circleci.com/gh/oskarrough/ember-date-fns.svg?style=svg)](https://circleci.com/gh/oskarrough/ember-date-fns)\n\nLightweight date helpers for your ember-cli application thanks to [date-fns](https://date-fns.org/). If all you need is to format a date, Ember date-fns will help you.\n\nIf you are looking for more features, see [ember-moment](https://github.com/stefanpenner/ember-moment) instead.\n\n## Installation\n\nIn your ember-cli project, run either\n\n`ember install ember-date-fns`\n\nor\n\n`yarn add ember-date-fns`\n\nor\n\n`npm install --save ember-date-fns`\n\n\n## Available helpers\n\nAll helpers map to the date-fns function of the same name.\n\n+ [`date-format`](#date-format)\n+ [`date-from-now`](#date-from-now)\n\n## Usage\n\n### `date-format`\n\nUses [format](https://date-fns.org/docs/format) to format a date object, string or timestamp.\n\n```hbs\n{{date-format date \"D. MMM YYYY\"}}\n```\n\n### `date-from-now`\n\nUses [distanceInWordsToNow](https://date-fns.org/docs/distanceInWordsToNow) to return \"time ago\". By default no suffix is added.\n\n```hbs\n{{date-from-now date addSuffix=true}}\n```\n\n### Exposing additional date-fns\n\n`date-fns` provides many functions for manipulating dates. In order to reduce bundle size only `date-fns/distance_in_words_to_now` and `date-fns/format` helpers are included by default. However you can import any functions anywhere in your application.\n\nExample:\n\n```javascript\n// app/components/some-component.js\n\nimport Ember from 'ember';\nimport endOfDay from 'date-fns/end_of_day';\n\n// Your component code here...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foskarrough%2Fember-date-fns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foskarrough%2Fember-date-fns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foskarrough%2Fember-date-fns/lists"}