@kinesis/ember-cli-numeral

1.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @kinesis/ember-cli-numeral

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators