elo7-format-amd

1.1.6 • Public • Published

Format-amd

Format-amd string/number library

Format.js is a library that converts string to number or the opposite. This library uses amd structure. Currently, we support currency formats.

Build Status

Install

Install : npm install elo7-format-amd

Dependency

Format-amd depends on an amd implementation. We suggest define-async implementation for dependency lookup.

Example

define(['format'], function(format) {
	format.currency(17.2, 'R$'); // Returns R$ 17,20
	format.currencyToNumber('R$ 9,50'); // Returns 9.5
});

License

Format-amd is released under the BSD. Have at it.


Copyright ©️ 2014 Elo7

Readme

Keywords

Package Sidebar

Install

npm i elo7-format-amd

Weekly Downloads

81

Version

1.1.6

License

BSD-3-Clause

Unpacked Size

12.8 kB

Total Files

10

Last publish

Collaborators

  • elo7tech