@kinesis/ember-cli-numeral

ES6 accessible module for Numeral.js within your Ember applications.

Stats

StarsIssuesVersionUpdatedCreatedSize
@kinesis/ember-cli-numeral
16161.0.04 years ago4 years agoMinified + gzip package size for @kinesis/ember-cli-numeral in KB

Readme

ember-cli-numeral

Build Status Ember Observer Score NPM Version Ember badge

ES6 accessible module for Numeral.js within your Ember applications.

Install

ember install ember-cli-numeral

Usage

import numeral from 'numeral';

let string = numeral(1000).format('0,0');
// '1,000'

See the Numeral.js docs for general usage.

Including Numeral.js locales

To include all the Numeral.js locales definitions, you need to add the following configuration to your ember-cli-build.js.

var app = new EmberApp(defaults, {
  numeral: {
    includeLocales: true
  }
});

Then import locales to register them:

import numeral-locales from 'numeral-locales'; // jshint ignore:line

The default configuration is false. So locales will not be loaded by default.

Fastboot compatibility

This addon is compatible with fastboot out of the box.

License

ember-cli-numeral shims is MIT Licensed.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.