# ember-dynamic-format-currency

> Helper to display quantitys with beauty currency format and dynamic decimal option (2 by default).

Latest version **1.0.0** (published 2019-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-dynamic-format-currency
pnpm add ember-dynamic-format-currency
yarn add ember-dynamic-format-currency
bun add ember-dynamic-format-currency
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-03-11 |
| First published | 2016-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 6.* \|\| 8.* \|\| >= 10.* |
| Dependencies | 1 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | leoelcoder |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-dynamic-format-currency
- Repository: https://github.com/leoelcoder/ember-dynamic-format-currency
- Homepage: https://github.com/leoelcoder/ember-dynamic-format-currency#readme
- Issues: https://github.com/leoelcoder/ember-dynamic-format-currency/issues
- npm.io page: https://npm.io/package/ember-dynamic-format-currency

## Dependencies (1)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^7.1.2

## Recent versions

- 1.0.0 (latest) — 2019-03-11
- 0.2.0 — 2017-01-05
- 0.1.7 — 2016-03-14
- 0.1.6 — 2016-03-11
- 0.1.5 — 2016-03-11
- 0.1.4 — 2016-03-11
- 0.1.3 — 2016-03-11
- 0.1.2 — 2016-03-11
- 0.1.1 — 2016-03-11
- 0.1.0 — 2016-03-11

## README

# ember-dynamic-format-currency

# IMPORTANT

* This addon has been update to ember 3.0 and ember cli was updated too.
* If you are using ember 2.x you should use the version 0.2.0 of this addon

## Installation

`ember install ember-dynamic-format-currency`

## Example with arguments

* `{{format-currency 1000}}`

$ 1,000.00

* `{{format-currency 1000.30}}`

$ 1,000.30

* `{{format-currency 900.30 2}}`

$ 900.30

* `{{format-currency 900.303 3 "€"}}`

€ 900.303

* `{{format-currency 4300.303 3 "$" " "}}`

$ 4 300.303

* `{{format-currency 4300.30 3 "$" ","}}`

$ 4,300.300

* `{{format-currency 4300.30 3 "$" " " ","}}`

$ 4 300,300

## Example with named arguments

* `{{format-currency 1000}}`

$ 1,000.00

* `{{format-currency 1000.30}}`

$ 1,000.30

* `{{format-currency 900.30 decimals=2}}`

$ 900.30

* `{{format-currency 900.303 decimals=3 sign="€"}}`

€ 900.303

* `{{format-currency 4300.303 decimals=3 sign="$" separator=" "}}`

$ 4 300.303

* `{{format-currency 4300.30 decimals=3 sign="$" separator=","}}`

$ 4,300.300

* `{{format-currency 4300.30 decimals=3 sign="$" separator=" " decimalSeparator=","}}`

$ 4 300,300


## Arguments and named arguments

You can mix both, no named arguments and named arguments,
BUT IT IS IMPORTAN THE ORDER WHEN YOU USE NO NAMED ARGUMENTS
the order of the no named arguments
First argument: decimals
Second argument: sign
Third argument: thousands separator
## Running

* `ember server`
* Visit your app at http://localhost:4200.

## Running Tests

* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).

---
_Source: https://npm.io/package/ember-dynamic-format-currency · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
