Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-moment

Package Overview
Dependencies
Maintainers
6
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-moment

Moment.js template helpers for ember

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30K
increased by5.15%
Maintainers
6
Weekly downloads
 
Created
Source

Ember-moment

moment.js template helpers for ember Build Status

Usage

  • ember-cli < 0.2.3 ember install:addon ember-moment
  • ember-cli >= 0.2.3 ember install ember-moment
{{moment date}}
{{ago date}}
{{duration ms}}

advance

{{moment date outputFormat inputFormat}}
{{ago date inputFormat}}
{{duration number units}}

Computed Macro

import { moment, ago } from 'ember-moment/computed';

export default Ember.Controller.extend({
  date: new Date('2013-02-08T09:30:26'),
  shortDate: moment('date', 'MM/DD/YYYY')
  timeSince: ago('date', true)
});

Include Moment Timezone

You can optionally include the Moment Timezone package in your Brocfile.js like so:

var app = new EmberApp({
  'ember-moment': {
    // moment-timezone dataset to include.  Either 'all', '2010-2020', or 'none'.
    'includeTimezone': 'all'
  }
});

Development

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Keywords

FAQs

Package last updated on 19 Jun 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc