
Security News
New CNA Scorecard Tool Ranks CVE Data Quality Across the Ecosystem
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
ember-date-fns
Advanced tools
Lightweight date helpers for your ember-cli application thanks to date-fns. If all you need is to format a date, Ember date-fns will help you.
If you are looking for more features, see ember-moment instead.
In your ember-cli project, run either
ember install ember-date-fns
or
yarn add ember-date-fns
or
npm install --save ember-date-fns
All helpers map to the date-fns function of the same name.
date-format
Uses format to format a date object, string or timestamp.
{{date-format date "D. MMM YYYY"}}
date-from-now
Uses distanceInWordsToNow to return "time ago". By default no suffix is added.
{{date-from-now date addSuffix=true}}
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.
Example:
// app/components/some-component.js
import Ember from 'ember';
import endOfDay from 'date-fns/end_of_day';
// Your component code here...
FAQs
Date helpers for Ember.js using date-fns
The npm package ember-date-fns receives a total of 9 weekly downloads. As such, ember-date-fns popularity was classified as not popular.
We found that ember-date-fns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.