
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
ember-cli-numeral
Advanced tools
ES6 accessible module for Numeral.js within your Ember applications.
ES6 accessible module for Numeral.js within your Ember applications.
ember install ember-cli-numeral
import numeral from 'numeral';
let string = numeral(1000).format('0,0');
// '1,000'
See the Numeral.js docs for general usage.
To include all the Numeral.js locales definitions, you need to add the
following configuration to your ember-cli-build.js
.
let app = new EmberApp(defaults, {
numeral: {
includeLocales: ['en-gb', 'pl']
}
});
Then import locales to register them, and activate them:
import numeral from 'numeral';
import 'numeral/en-gb';
import 'numeral/pl';
let string = numeral.locale('pl') && numeral(1000).format('0,0 $');
numeral.locale('en-gb');
let string2 = numeral(50).format('0.0[0]');
numeral.locale('en');
Note: the "en" locale is loaded by default.
This addon is compatible with FastBoot out of the box.
ember-cli-numeral
shims is MIT Licensed.
FAQs
ES6 accessible module for Numeral.js within your Ember applications.
The npm package ember-cli-numeral receives a total of 1,425 weekly downloads. As such, ember-cli-numeral popularity was classified as popular.
We found that ember-cli-numeral 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.