Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

money_helper

Package Overview
Dependencies
Maintainers
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

money_helper

  • 3.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
4
Created
Source

MoneyHelper CircleCI

A simple module to assist in formatting unambiguous prices and price ranges in international currencies in a Roman Script environment.

Usage

Examples:

money_to_text(10000, currency: 'AUD')
#=> 'AUD $100.00'

money_to_text(10000, currency: 'AUD', with_currency: false, with_symbol: false)
#=> '100.00'

money_range_to_text(10000, 40000, currency: 'AUD')
#=> 'AUD $100.00 - 400.00'

money_range_to_text(10000, 40000, currency: 'AUD', delimiter: ' ... ')
#=> 'AUD $100.00 ... 400.00'

Defaults

As of #16 this library explicitly specifies the Money.locale_backend = :currency default.

Contributing

Fork the project. Make your feature addition or bug fix with tests. Send a pull request.

MIT License, see LICENSE for details.

(c) 2013-2018 Artsy, Sahil Yakhmi, Joey Aghion and contributors.

FAQs

Package last updated on 22 Mar 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc