JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q58646F
  • License MIT

Several helpers optimized to format dates natively according to the website visitor's locale.

Package Exports

  • ember-helper-locale-date

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-helper-locale-date) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ember-helper-locale-date

stability-stable npm version downloads CircleCI Code Climate Dependencies ember-observer-badge Ember-1.13.0+ License

Purpose

These helpers are optimized to natively format dates according to the website visitor's locale. Singleton Intl.DateTimeFormat instances are used for basic formatting. Once you pass options into the helper all optimization is tossed as the date instance's toLocaleString() method is invoked rather than the more desirable Intl.DateTimeFormat instance's format() method.

Check out the docs for further information...

DOCS

http://docs.ember-helper-locale-date.cybertooth.io

DEMO

http://demo.ember-helper-locale-date.cybertooth.io

PERFORMANCE

http://demo.ember-helper-locale-date.cybertooth.io/#/performance

Tested Against

ember-lts-1.13.0 ember-lts-2.4 ember-lts-2.8 ember-lts-2.12

ember-release ember-beta ember-canary

Collaboration Information

This README outlines the details of collaborating on this Ember add-on.

Installation

  • git clone git@github.com:cybertoothca/ember-helper-locale-date.git
  • cd ember-helper-locale-date

With NPM

npm install

With Yarn

yarn

Running

Running Tests

  • npm test (Runs ember try:each to test your add-on against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

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

Linking This Add-on For Local Testing

Linking

  1. From the command line at the root of this project run the npm link command to link this add-on within your local node repository.
  2. From the other Ember project that you wish to test this add-on in, execute the following command: npm link ember-helper-locale-date.
  3. Now in that same other Ember project, you should go into the package.json and add the ember add-on with the version *. It will look something like this: "ember-helper-locale-date": "*". Now when/if you execute npm install on this other project it will know to look for the linked add-on rather than fetch it from the central repository.

Unlinking

  1. Remove the add-on from your local node repository with the following command (that can be run anywhere): npm uninstall -g ember-helper-locale-date
  2. Remove the reference to the ember-helper-locale-date in your other project's package.json.
  3. Run an npm prune and bower prune from the root of your other project's command line.