Socket
Socket
Sign inDemoInstall

ember-currencies-and-format-money

Package Overview
Dependencies
221
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.1 to 3.1.2

2

package.json
{
"name": "ember-currencies-and-format-money",
"version": "3.1.1",
"version": "3.1.2",
"description": "list of currencies and format given money amount according to the currency.",

@@ -5,0 +5,0 @@ "keywords": [

ember-currencies-and-format-money
==============================================================================
[Short description of the addon.]
ember-currencies-and-format-money is an addon that enables you format money amounts in your Ember.js application.

@@ -10,40 +10,20 @@ Installation

```
cd your-project-directory
ember install ember-currencies-and-format-money
```
Usage
------------------------------------------------------------------------------
[Longer description of how to use the addon in apps.]
You can import `formatMoneyAmountByCurrency` function and use it by passing `amount`, `currencyValue` and `currencyHidden` parameters.
```js
import { formatMoneyAmountByCurrency } from 'ember-currencies-and-format-money/format-amount';
let amount = 1550;
let currencyValue = 'USD';
let currencyHidden = false;
let result = formatMoneyAmountByCurrency(amount, currencyValue, currencyHidden);
console.log(result); // $15.50
```
Contributing
------------------------------------------------------------------------------
### Installation
* `git clone <repository-url>`
* `cd ember-currencies-and-format-money`
* `yarn install`
### Linting
* `yarn lint:hbs`
* `yarn lint:js`
* `yarn lint:js --fix`
### Running tests
* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions
### Running the dummy application
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
License

@@ -50,0 +30,0 @@ ------------------------------------------------------------------------------

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc